Dmitriy Novozhilov
3d6ec0ec75
[FIR2IR] Automatically store IR declaration in its parent upon creation
...
Previously, creating a declaration with Fir2IrCallableDeclarationsGenerator/
Fir2IrClassifiersGenerator didn't guarantee that this declaration will
be actually added to the list of parent class/file declarations, which
lead to situations when FIR2IR created some declarations in the air
(mostly fake-overrides)
2023-10-17 12:46:27 +00:00
Alexander Shabalin
27c85a059f
[K/N] Move memmem from Porting.h to KString.cpp ^KT-59008
2023-10-17 09:37:34 +00:00
Vladimir Sukharev
5acdc865b6
Properly handle multi-line diagnostics test directives
2023-10-13 10:14:21 +00:00
Igor Chevdar
c6470a684d
[box-tests] Added a reproducer for #KT-62313
2023-10-12 13:34:13 +00:00
Igor Chevdar
1b30f76a78
[K/N][tests] Added a test on stepping through inline arguments
2023-10-11 06:27:02 +00:00
Pavel Kunyavskiy
4175a0d258
[K/N] Enable test muted because of wrong test infra setup
...
^KT-61773
2023-10-09 16:52:15 +00:00
Pavel Punegov
a72eafc92b
[K/N][test] Fix cache mode selection for test targets without cache
...
Execution of tests without cache support should be restricted. Such runs
should use default cache mode (without).
2023-10-04 19:21:51 +00:00
Vladimir Sukharev
cd4c241fa3
[K/N] Run irText tests for K2/Native
...
^KT-58240
2023-10-04 18:20:05 +00:00
Vladimir Sukharev
03442e1cee
[FIR] Implement FirGenericArrayClassLiteralSupport platform feature
...
^KT-59931 Fixed
2023-10-04 14:45:23 +00:00
Timofey Solonin
8dc9307f9e
Add iconv void * overloads for backwards compatibility
...
Since Xcode 15 the iconv APIs operate on an opaque type __tag_iconv_t* instead of
void*. This causes a runtime exception in older Ktor versions which
depended on iconv.
^KT-62286
2023-10-04 08:04:37 +02:00
Pavel Kunyavskiy
ed7e458828
[IR] Don't use linker fake override builder in Ir actualizer
...
Now, it uses fake override builder from in Fir2IrComponents.
It would also allow using it in lazy classes in the future.
^KT-61934
2023-09-24 16:11:49 +00:00
Igor Yakovlev
758484a01f
[Wasm] Fix generation optimised when expression with Nothing type
...
Fixed #KT-62147
2023-09-23 10:18:30 +02:00
Vladimir Sukharev
690d18e541
[K/N, Test] Move test code "org.jetbrains.kotlin.konan" -> "org.jetbrains.kotlin.konan.test.*"
2023-09-22 17:27:09 +00:00
Sebastian Sellmair
9031deeacf
[Commonizer] PropertyCommonizer: Support annotation commonization
...
^KT-62028 Verification Pending
2023-09-21 12:39:15 +00:00
Sebastian Sellmair
f5b107d4f0
[Commonizer] ClassCommonizer: Support annotation commonization
...
^KT-62028 Verification Pending
2023-09-21 12:39:15 +00:00
Ivan Kochurkin
3cd4f7c3aa
[FIR] Consider @PlatformDependent annotation everywhere (including JS and Native)
...
^KT-57858 Fixed
Remove FirEmptyOverridesBackwardCompatibilityHelper since it's not used anymore
Remove overridesMemberWithPlatformDependent.kt test file since it becomes redundant
2023-09-20 17:12:52 +00:00
Kirill Rakhman
5b4409e34c
[FIR] Store abbreviated type in deserialized declarations as attribute
...
#KT-58542 Fixed
2023-09-20 09:31:29 +00:00
Dmitriy Dolovov
70d12b271d
[Native][tests] Drop obsolete EXPECT_ACTUAL_LINKER test directive
...
This directive was earlier used in KMP tests that were rewritten
and do not require this directive anymore.
^KT-61136
2023-09-20 07:54:36 +00:00
Dmitriy Dolovov
249106b23f
[KLIB] Drop obsolete tests on serialization of expect IR declarations
...
These tests are muted for all KLIB-oriented platforms for a long time
and are no more relevant since the removal of ExpectActualTable.
^KT-61136
2023-09-20 07:54:36 +00:00
Ilmir Usmanov
f7a2da8f82
Minor. Add regression test for KT-41997
...
#KT-41997 Fixed
2023-09-19 20:11:57 +00:00
Vladimir Sukharev
ef5346e62e
[K/N] Use enforced property PIPELINE_TYPE in CompilerOutputTest to avoid duplicated "-language-version" setting.
2023-09-19 15:46:30 +00:00
Mikhail Glukhikh
e8115820dd
LV 2.0: mute CompilerOutputTest.testReleaseCompilerAgainstPreReleaseLibrary
...
Related to KT-61773
2023-09-19 15:46:29 +00:00
Mikhail Glukhikh
bbdaa8c3ff
LV 2.0: prevent double-set of LV in Native compilation tests
2023-09-19 15:46:29 +00:00
Dmitriy Novozhilov
9a6c6a40a9
[FIR2IR] Allow symbolTable cache lookups for generated Any methods
...
^KT-61972 Fixed
2023-09-18 09:16:15 +00:00
Igor Chevdar
1df93e1611
[box-tests] Added a reproducer for #KT-61924
2023-09-15 09:26:54 +00:00
Timofey Solonin
53584cdd49
Don't emit CAST_NEVER_SUCCEEDS when casting to a forward declaration type
...
^KT-58929
2023-09-13 17:49:12 +00:00
Sergej Jaskiewicz
904f8706ee
[K/N] Don't use reflection in irText tests for obtaining manglers
...
See KT-61248
2023-09-13 14:25:12 +00:00
Vladimir Sukharev
c4201101ac
[K/N] K2/MPP: Move stdlib to the head of dependency list.
...
^KT-61645 Fixed
Merge-request: KT-MR-12079
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-09-13 13:56:21 +00:00
Anastasia.Nekrasova
eab6e9bb36
Added tests for all code samples from KT-60523, except 2.3.
...
Test for 2.3 sample must be added in the context of KT-61792.
2023-09-12 07:03:20 +00:00
Alexander Shabalin
2f22b0a6b0
[K/N] Migrate runtime/atomics tests to new testing infra ^KT-61259
2023-09-09 07:25:35 +00:00
Alexander Shabalin
6b6da5b08f
[K/N] In executors make sure child process does not leak.
2023-09-08 16:22:52 +00:00
Mikhail Glukhikh
20cb075e56
K2: fix calculating property reference type in delegated setter
...
This commit is an accidentally forgotten part of the KT-61045 fix
#KT-61720 Fixed
2023-09-08 15:35:10 +00:00
Alexander Shabalin
ce371df5f6
[K/N] Set 2 minute timeout for StdlibTest
2023-09-08 14:01:43 +00:00
Alexander Shabalin
ff88c76e3c
[K/N] Parse duration for EXECUTION_TIMEOUT
2023-09-08 14:01:43 +00:00
Johan Bay
a1c2ded8a3
[K/N] Header klibs: Keep private properties in value classes
...
^KT-61767 Fixed
2023-09-08 13:13:19 +00:00
Denis.Zharkov
034671ad78
K2: Update substituted member candidate if it contains type variables
...
See the comment at updateSubstitutedMemberIfReceiverContainsTypeVariable
It became necessary after delegate inference is rewritten, since before
that happened, stub types were being left there and FIR2IR handled
them accidentally properly because stub types are equal to anything.
But that wasn't really correct even there because stub types are not
intended to leak out of the FIR
^KT-61060
2023-09-08 07:11:48 +00:00
Alexander.Likhachev
6eaccc997f
[Build] Fix the typo junit jupyter -> jupiter
2023-09-06 22:47:34 +00:00
Alexander.Likhachev
6f96be0b76
[Build] Get rid of the testApiJUnit5 method
...
#KTI-1349 In Progress
2023-09-06 22:47:34 +00:00
Alexander.Likhachev
357d12fc8e
[Build] Move JUnit dependencies into the version catalog
...
The `kotlin-test` dependencies are left untouched as changing them affects publications, thus these versions are independent from the used inside our build
#KTI-1349 In Progress
2023-09-06 22:47:33 +00:00
Vladimir Sukharev
f14b48a4b0
[K/N] Don't use KonanIrModuleFragmentImpl in irText test pipeline
...
^KT-58240
2023-09-05 15:33:25 +00:00
Vladimir Sukharev
3aa6c9e74d
[K/N] Run irText tests for K1/Native
...
^KT-58240
2023-09-05 11:42:45 +00:00
Ivan Kylchik
abc061e17f
[IR] Restore and fix ifConstVal test
...
It was accidentally dropped after KT-55196 fix.
2023-09-05 11:06:43 +00:00
Alexander Shabalin
9ab6a5ff56
[K/N] Migrate all stdlib_external tests to new testing infra ^KT-61259
...
- Move backend.native/tests/stdlib_external to runtime/test This mirrors
tests location (in relation to sources) on other backends.
- Remove all backend.native/tests tasks using stdlib_external.
Additionally remove now unused KonanGTest.
- Include complete native-wasm/test and runtime/test in
native/native.test
- In runtime/test/numbers/MathTest.kt leave only native-specific part.
2023-09-04 18:51:10 +00:00
Alexander Shabalin
6a19c4ce96
[K/N] Remove legacy executors.
2023-09-04 11:38:47 +00:00
Alexander Shabalin
cb25ef80a9
[K/N] Reenable disabled FirStdlibTest
2023-09-01 14:45:05 +00:00
Alexander Shabalin
958d613911
[K/N] Remove code for deprecated targets from runtime ^KT-59008
2023-09-01 10:48:07 +00:00
Alexander Shabalin
bd797ed503
[K/N] Run stdlib tests only in normal mode ^KT-61259
2023-08-30 17:34:34 +00:00
Ivan Kochurkin
c8c25d8b98
[FIR] Fix resolving of overload function with expect and common candidates
...
^KT-58896 Fixed
2023-08-30 15:58:59 +00:00
Johan Bay
0a612e4268
[klib] Add an option to write out header klibs
...
The header klib is supposed to only contain the public abi of the module
similar to jvm-abi-gen. It is intended to be used as a dependency for other
klib compilations instead of the full klib for compilation avoidance.
^KT-60807
2023-08-29 13:25:07 +00:00
Pavel Punegov
ecb6b5dc58
[K/N][build] Remove obsolete kotlin-native-shared project
...
This project was replaced by the :native:kotlin-native-utils located at
native/utils. All sources were already merged.
Merge-request: KT-MR-11847
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com >
2023-08-28 14:57:16 +00:00