Commit Graph

288 Commits

Author SHA1 Message Date
Svyatoslav Scherbina 13bbd7af81 runtime: use exitStatus == 1 if main finished with exception
Also update the corresponding test.
2017-03-10 14:34:10 +07:00
Ilya Matveev 853a40b230 tests: Mute tests with '::class' 2017-03-09 18:01:19 +03:00
Ilya Matveev 60bcc50340 tests: Mute tests with java collection inheritance 2017-03-09 18:01:19 +03:00
Igor Chevdar bc0772eab1 Test on link stage. 2017-03-07 20:02:20 +03:00
Igor Chevdar 1a8ce13067 Added tests 2017-03-07 18:35:36 +03:00
Igor Chevdar 8c1c9f5660 Turned off lowering of outer class for inner class constructors.
Constructors of inner classes already have access to their outer class
through its dispatch receiver parameter.
2017-03-06 21:08:56 +03:00
Igor Chevdar 0ff306ad3a Rewrote enum lowering to support usage from other modules.
- Split up enum lowering into two stages: descriptors creation and IR creation.
- Added link stage test.
- Enum.valueOf() uses binary search instead of linear.
2017-03-06 14:35:39 +03:00
Igor Chevdar bf65a78a93 Made bridge methods public.
Added test on usage of a bridge method from different module.
Bridge methods must be public in order use them from other modules.
2017-03-06 14:35:39 +03:00
Svyatoslav Scherbina 2d3879ea0d backend/tests: add more tailrec tests 2017-03-06 17:09:05 +07:00
Svyatoslav Scherbina 8427612d59 backend/tests: add trivial tests for tailrec 2017-03-03 20:45:39 +07:00
Konstantin Anisimov c7e4f0f28f New tests added 2017-03-03 18:30:35 +07:00
Igor Chevdar e2f2e31dc1 Added delegated property through map support + tests. 2017-03-01 14:40:10 +03:00
Igor Chevdar 889b28ee87 Added link test, checking correct object field layout. 2017-03-01 14:40:10 +03:00
Igor Chevdar f534616e19 Added tests. 2017-03-01 14:40:10 +03:00
Svyatoslav Scherbina a85d30215d backend/tests: add interop3 (uses callback) 2017-03-01 16:14:17 +07:00
Nikolay Igotti 3cd4f76397 Add startsWith()/endsWith(). (#281) 2017-02-28 17:03:51 +03:00
Ilya Matveev 00e5e070d7 tests: Add a test for list sorting 2017-02-28 10:59:25 +03:00
Ilya Matveev 1cbfa73f67 tests: Use 'prefix' property in run_external task 2017-02-28 10:49:30 +03:00
Svyatoslav Scherbina 925b1fb0b6 backend/tests: add tests for == with Nothing/Nothing? 2017-02-27 13:16:12 +07:00
Ilya Matveev b6d5dd5a68 backend/tests: Disable coroutines tests 2017-02-22 17:50:06 +03:00
Igor Chevdar 9165d65560 Added tests on interface calls of enum class 2017-02-22 15:37:10 +03:00
Igor Chevdar 174b8ee601 Added parameter 'prefix' to task 'run' in order to run subset of tests 2017-02-22 15:37:10 +03:00
Igor Chevdar bb82109ded Added tests on class delegation 2017-02-22 15:35:48 +03:00
Igor Chevdar 4835aa3e74 Added tests on bridges 2017-02-22 15:35:13 +03:00
Svyatoslav Scherbina 90149063c3 backend/tests: add disabled 'vararg_of_literals' 2017-02-22 11:03:37 +07:00
Ilya Matveev 84cb52afed backend/tests: Add test error number reporting to stdout 2017-02-21 18:56:52 +03:00
Vasily Levchenko e59f3c0805 TEST: goldValue: s/<\(null\)>/\1/g 2017-02-21 14:21:49 +03:00
KonstantinAnisimov ab7c879633 Merge pull request #258 from JetBrains/inline3
Inline3
2017-02-21 17:18:41 +07:00
Svyatoslav Scherbina 4e6ad59d9f backend/tests: improve interop_echo_server code 2017-02-21 16:42:14 +07:00
Konstantin Anisimov bf0fc7ec03 Test excluded using "disable" directive 2017-02-21 16:14:30 +07:00
Konstantin Anisimov 3b5c16076e TESTS: New tests added 2017-02-21 16:12:52 +07:00
Ilya Matveev c68c4d3b6d backend: Use simple DFS during closure building.
Now closure builder can contain includes. Includes
are another builders which closures must be added
to the building one.
Includes are:

For function closure:
	call targets (including constructors)
	callable reference targets

For class:
	all children declarations
	call targets (including constructors)
        callable reference targets

For constructor:
	call and callable reference targets
	delegating constructor call target
	constructing class closure
2017-02-17 15:17:46 +03:00
Ilya Matveev 95a9f65afd backend/tests: Add tests for local function closures 2017-02-17 15:17:46 +03:00
Nikolay Igotti 45bb2fdb8b Add some string operations, refactor runtime. (#249) 2017-02-17 14:31:28 +03:00
Nikolay Igotti 38c6b5e9ad More stdlib: sorting, better Appendable, other minor changes. (#245) 2017-02-16 17:00:37 +03:00
Igor Chevdar c746da3ce4 Bridges (#240)
* - bridges building
- bridges support in vtable and methods table

* FunctionDescriptor.signature fix + some assertions

* tests

* refactoring

* refactoring

* removed debug output

* refactoring

* review fixes

* implemented bridge construction for parameters

* tests

* refactoring

* removed custom box/unbox

* added bridge for extension receiver
2017-02-16 15:26:57 +05:00
Konstantin Anisimov 88a794019a Ascape analysis is disabled 2017-02-16 15:49:04 +07:00
Konstantin Anisimov 86cca4488f Workaround for verified args is removed, test is excluded 2017-02-16 15:49:04 +07:00
Konstantin Anisimov 76ebe9d870 TESTS: recursive inlining 2017-02-16 15:49:04 +07:00
Konstantin Anisimov 566ecbe647 New test have been enabled 2017-02-16 15:49:04 +07:00
Vasily Levchenko 6310ec80c3 TEST: added defaults9 test 2017-02-16 11:40:10 +03:00
Vasily Levchenko c395bc80a0 TEST: defaults7 test enabled and defaults4 was enabled 2017-02-15 14:48:28 +03:00
Ilya Matveev 061a8a0b55 Remove main function from some external tests 2017-02-14 11:52:16 +03:00
Vasily Levchenko 661d66477c TEST: assertEquals msg paramter is optional 2017-02-13 13:39:38 +03:00
Svyatoslav Scherbina 8dc171aabb backend/tests: add interop_echo_server (doesn't check that it works yet) 2017-02-13 11:08:24 +07:00
Igor Chevdar 5c8368847a Containing declaration elimination (#225)
* rewrote AbstractClosureAnnotator not using containingDeclaration

* bug fix

* bug fix

* review fixes + tests

* review fixes

* refactoring

* fix
2017-02-09 16:53:47 +05:00
Nikolay Igotti 4b27074979 Extremely conservative escape analysis. (#212) 2017-02-08 19:15:55 +03:00
Igor Chevdar a856e16d2f Local declarations and initializers fixes (#222)
* captured values are stored in corresponding fields before call to super constructor

* preserving the order of initializers

* tests

* refactoring

* - test fix
- workaround of IR bug

* refactoring

* review fix
2017-02-08 14:52:26 +05:00
Vasily Levchenko 7b0c0f5bfb TEST: report task. 2017-02-08 11:40:24 +03:00
Vasily Levchenko 16df5c4299 KonanTest: infrostructure enhancements.
- test status in enum.
- fails are bit different from errors.

it takes reports generated in output directory and sum statistics and publish
result on slack.
2017-02-08 11:40:24 +03:00