@@ -908,7 +908,8 @@ standaloneTest("cleaner_in_tls_worker") {
908
908
}
909
909
910
910
standaloneTest(" worker_bound_reference0" ) {
911
- enabled = (project. testTarget != ' wasm32' ) // Workers need pthreads.
911
+ enabled = (project. testTarget != ' wasm32' ) && // Workers need pthreads.
912
+ ! isK2(project) // KT-56272
912
913
source = " runtime/concurrent/worker_bound_reference0.kt"
913
914
flags = [' -tr' ]
914
915
@@ -1444,7 +1445,8 @@ task localClass_localHierarchy(type: KonanLocalTest) {
1444
1445
}
1445
1446
1446
1447
standaloneTest(" objectDeclaration_globalConstants" ) {
1447
- disabled = (cacheTesting != null ) // Cache is not compatible with -opt.
1448
+ disabled = (cacheTesting != null ) || // Cache is not compatible with -opt.
1449
+ isK2(project) // KT-56189
1448
1450
flags = [" -opt" , " -opt-in=kotlin.native.internal.InternalForKotlinNative" , " -tr" ]
1449
1451
source = " codegen/objectDeclaration/globalConstants.kt"
1450
1452
}
@@ -2754,12 +2756,6 @@ standaloneTest("kt-49240-stack-trace-completeness") {
2754
2756
source = " runtime/exceptions/kt-49240-stack-trace-completeness.kt"
2755
2757
}
2756
2758
2757
- standaloneTest(" stack_trace_out_of_bounds" ) {
2758
- disabled = ! supportsCoreSymbolication(project) || project. globalTestArgs. contains(' -opt' ) || (project. testTarget == ' ios_arm64' )
2759
- flags = [' -g' , ' -Xg-generate-debug-trampoline=enable' , ' -Xbinary=stripDebugInfoFromNativeLibs=false' ]
2760
- source = " runtime/exceptions/stack_trace_out_of_bounds.kt"
2761
- }
8000
2762
-
2763
2759
standaloneTest(" kt-37572" ) {
2764
2760
disabled = ! supportsCoreSymbolication(project) || project. globalTestArgs. contains(' -opt' )
2765
2761
flags = [' -g' , ' -Xbinary=sourceInfoType=coresymbolication' ]
@@ -2903,6 +2899,7 @@ standaloneTest("runtime_math_exceptions") {
2903
2899
}
2904
2900
2905
2901
standaloneTest(" runtime_math" ) {
2902
+ disabled = isK2(project) // KT-56189
2906
2903
source = " stdlib_external/numbers/MathTest.kt"
2907
2904
flags = [' -tr' ]
2908
2905
}
@@ -3151,6 +3148,7 @@ task concatenation(type: KonanLocalTest) {
3151
3148
}
3152
3149
3153
3150
task const_infinity (type : KonanLocalTest ) {
3151
+ disabled = isK2(project) // KT-56189
3154
3152
source = " codegen/basics/const_infinity.kt"
3155
3153
}
3156
3154
@@ -3272,6 +3270,7 @@ task initializers3(type: KonanLocalTest) {
3272
3270
}
3273
3271
3274
3272
task initializers4 (type : KonanLocalTest ) {
3273
+ disabled = isK2(project) // KT-56189
3275
3274
useGoldenData = true
3276
3275
source = " runtime/basic/initializers4.kt"
3277
3276
}
@@ -3468,18 +3467,21 @@ standaloneTest("array_out_of_memory") {
3468
3467
}
3469
3468
3470
3469
standaloneTest(" mpp1" ) {
3470
+ disabled = isK2(project) // KT-56071
3471
3471
source = " codegen/mpp/mpp1.kt"
3472
3472
flags = [' -tr' , ' -Xmulti-platform' ]
3473
3473
}
3474
3474
3475
3475
linkTest(" mpp2" ) {
3476
+ disabled = isK2(project) // KT-56071
3476
3477
useGoldenData = true
3477
3478
source = " codegen/mpp/mpp2.kt"
3478
3479
lib = " codegen/mpp/libmpp2.kt"
3479
3480
flags = [' -Xmulti-platform' ]
3480
3481
}
3481
3482
3482
3483
standaloneTest(" mpp_default_args" ) {
3484
+ disabled = isK2(project) // KT-56071
3483
3485
source = " codegen/mpp/mpp_default_args.kt"
3484
3486
flags = [' -tr' , ' -Xmulti-platform' ]
3485
3487
}
@@ -3570,7 +3572,8 @@ task vararg_of_literals(type: KonanLocalTest) {
3570
3572
}
3571
3573
3572
3574
standaloneTest(' tailrec' ) {
3573
- disabled = isAggressiveGC // TODO: Investigate why too slow
3575
+ disabled = isAggressiveGC || // TODO: Investigate why too slow
3576
+ isK2(project) // KT-56269
3574
3577
useGoldenData = true
3575
3578
source = " lower/tailrec.kt"
3576
3579
flags = [' -XXLanguage:-ProhibitTailrecOnVirtualMember' , ' -e' , ' lower.tailrec.main' ]
@@ -4643,7 +4646,8 @@ interopTest("interop_globals") {
4643
4646
}
4644
4647
4645
4648
interopTest(" interop_macros" ) {
4646
- disabled = (project. testTarget == ' wasm32' ) // No interop for wasm yet.
4649
+ disabled = (project. testTarget == ' wasm32' ) || // No interop for wasm yet.
4650
+ isK2(project) // KT-56041
4647
4651
source = " interop/basics/macros.kt"
4648
4652
interop = ' cmacros'
4649
4653
}
@@ -4718,7 +4722,8 @@ interopTest("interop_concurrentTerminate") {
4718
4722
}
4719
4723
4720
4724
interopTest(" interop_incompleteTypes" ) {
4721
- disabled = (project. testTarget == ' wasm32' ) // No interop for wasm yet.
4725
+ disabled = (project. testTarget == ' wasm32' ) || // No interop for wasm yet.
4726
+ isK2(project) // KT-56027
4722
4727
source = " interop/incomplete_types/main.kt"
4723
4728
interop = ' incomplete_types'
4724
4729
}
@@ -4959,7 +4964,7 @@ standaloneTest("interop_opengl_teapot") {
4959
4964
4960
4965
if (PlatformInfo . isAppleTarget(project)) {
4961
4966
interopTest(" interop_objc_smoke" ) {
4962
- enabled = ! isNoopGC
4967
+ enabled = ! isNoopGC && ! isK2(project) // KT-56030
4963
4968
source = " interop/objc/smoke.kt"
4964
4969
interop = ' objcSmoke'
4965
4970
doBeforeBuild {
@@ -5010,6 +5015,7 @@ if (PlatformInfo.isAppleTarget(project)) {
5010
5015
}
5011
5016
5012
5017
interopTestMultifile(" interop_objc_tests" ) {
5018
+ disabled = isK2(project) // KT-55909
5013
5019
source = " interop/objc/tests/"
5014
5020
interop = ' objcTests'
5015
5021
flags = [' -tr' , ' -e' , ' main' ]
@@ -5043,7 +5049,7 @@ if (PlatformInfo.isAppleTarget(project)) {
5043
5049
// KT-49034 tests don't need whole compilation pipeline (only frontend) or platform libraries. Consider simplifying them when porting
5044
5050
// to the new test infra.
5045
5051
interopTest(" interop_kt49034_struct" ) {
5046
- disabled = (project. testTarget == ' wasm32' )
5052
+ disabled = (project. testTarget == ' wasm32' ) || isK2(project) // KT-56028
5047
5053
interop = ' kt49034_struct'
5048
5054
source = ' interop/objc/kt49034/struct/main.kt'
5049
5055
@@ -5052,7 +5058,7 @@ if (PlatformInfo.isAppleTarget(project)) {
5052
5058
}
5053
5059
5054
5060
interopTest(" interop_kt49034_objcclass" ) {
5055
- disabled = (project. testTarget == ' wasm32' )
5061
+ disabled = (project. testTarget == ' wasm32' ) || isK2(project) // KT-56028
5056
5062
interop = ' kt49034_objcclass'
5057
5063
source = ' interop/objc/kt49034/objcclass/main.kt'
5058
5064
@@ -5061,7 +5067,7 @@ if (PlatformInfo.isAppleTarget(project)) {
5061
5067
}
5062
5068
5063
5069
interopTest(" interop_kt49034_objcprotocol" ) {
5064
- disabled = (project. testTarget == ' wasm32' )
5070
+ disabled = (project. testTarget == ' wasm32' ) || isK2(project) // KT-56028
5065
5071
interop = ' kt49034_objcprotocol'
5066
5072
source = ' interop/objc/kt49034/objcprotocol/main.kt'
5067
5073
@@ -5105,6 +5111,7 @@ if (PlatformInfo.isAppleTarget(project)) {
5105
5111
}
5106
5112
5107
5113
interopTest(" interop_objc_foreignException" ) {
5114
+ disabled = isK2(project) // KT-55909
5108
5115
source = " interop/objc/foreignException/objc_wrap.kt"
5109
5116
interop = ' foreignException'
5110
5117
UtilsKt . dependsOnPlatformLibs(it)
@@ -5293,7 +5300,8 @@ if (PlatformInfo.isAppleTarget(project)) {
5293
5300
5294
5301
standaloneTest(" interop_kt55653" ) {
5295
5302
// Test depends on macOS-specific AppKit
5296
- enabled = (project. testTarget == ' macos_x64' || project. testTarget == ' macos_arm64' || project. testTarget == null )
5303
+ enabled = (project. testTarget == ' macos_x64' || project. testTarget == ' macos_arm64' || project. testTarget == null ) &&
5304
+ ! isK2(project) // KT-56030
5297
5305
source = " interop/objc/kt55653/main.kt"
5298
5306
useGoldenData = true
5299
5307
UtilsKt . dependsOnPlatformLibs(it)
@@ -5355,7 +5363,7 @@ standaloneTest("interop_zlib") {
5355
5363
}
5356
5364
5357
5365
standaloneTest(" interop_objc_illegal_sharing" ) {
5358
- disabled = ! isAppleTarget(project)
5366
+ disabled = ! isAppleTarget(project) || isK2(project) // KT-55902
5359
5367
source = " interop/objc/illegal_sharing.kt"
5360
5368
UtilsKt . dependsOnPlatformLibs(it)
5361
5369
if (isExperimentalMM) {
@@ -5415,7 +5423,8 @@ dynamicTest("kt41904") {
5415
5423
for (i in 0 .. 2 ) {
5416
5424
dynamicTest(" kt42796_$i " ) {
5417
5425
clangTool = " clang++"
5418
- disabled = (project. testTarget == ' wasm32' ) // wasm doesn't support -produce dynamic
5426
+ disabled = (project. testTarget == ' wasm32' ) || // wasm doesn't support -produce dynamic
5427
+ (i== 1 && isK2(project)) // KT-56182
5419
5428
source = " produce_dynamic/kt-42796/main-${ i} .kt"
5420
5429
cSource = " $projectDir /produce_dynamic/kt-42796/main.cpp"
5421
5430
useGoldenData = true
@@ -5451,7 +5460,8 @@ dynamicTest("interop_concurrentRuntime") {
5451
5460
}
5452
5461
5453
5462
dynamicTest(" interop_kt42397" ) {
5454
- disabled = (project. testTarget == ' wasm32' ) // wasm doesn't support -produce dynamic
5463
+ disabled = (project. testTarget == ' wasm32' ) || // wasm doesn't support -produce dynamic
5464
+ isK2(project) // KT-56182
5455
5465
source = " interop/kt42397/knlibrary.kt"
5456
5466
cSource = " $projectDir /interop/kt42397/test.cpp"
5457
5467
clangTool = " clang++"
@@ -5601,6 +5611,7 @@ linkTest("private_fake_overrides_1") {
5601
5611
}
5602
5612
5603
5613
linkTest(" remap_expect_property_refs" ) {
5614
+ disabled = isK2(project) // KT-56071
5604
5615
source = " codegen/mpp/remap_expect_property_ref_main.kt"
5605
5616
lib = " codegen/mpp/remap_expect_property_ref_lib.kt"
5606
5617
flags = [" -Xmulti-platform" ]
@@ -5697,6 +5708,7 @@ if (isAppleTarget(project)) {
5697
5708
}
5698
5709
}
5699
5710
framework(frameworkName) {
5711
+ enabled = ! isK2(project) // KT-56182
5700
5712
sources = [' objcexport' ]
5701
5713
library = libraryName
5702
5714
opts = [" -Xemit-lazy-objc-header=$lazyHeader " , " -Xexport-kdoc" , " -Xbinary=bundleId=foo.bar" ]
@@ -5753,6 +5765,7 @@ if (isAppleTarget(project)) {
5753
5765
}
5754
5766
}
5755
5767
framework(frameworkName) {
5768
+ enabled = ! isK2(project) // KT-56182
5756
5769
sources = [' objcexport' ]
5757
5770
artifact = frameworkArtifactName
5758
5771
library = libraryName
@@ -5808,6 +5821,7 @@ if (isAppleTarget(project)) {
5808
5821
}
5809
5822
}
5810
5823
framework(frameworkName) {
5824
+ enabled = ! isK2(project) // KT-56182
5811
5825
sources = [' objcexport' ]
5812
5826
artifact = frameworkArtifactName
5813
5827
library = libraryName
@@ -5840,6 +5854,7 @@ if (isAppleTarget(project)) {
5840
5854
}
5841
5855
}
5842
5856
framework(frameworkName) {
5857
+ enabled = ! isK2(project) // KT-56182
5843
5858
sources = [' objcexport' ]
5844
5859
artifact = frameworkArtifactName
5845
5860
library = libraryName
@@ -5872,6 +5887,7 @@ if (isAppleTarget(project)) {
5872
5887
}
5873
5888
}
5874
5889
framework(frameworkName) {
5890
+ enabled = ! isK2(project) // KT-56182
5875
5891
sources = [' objcexport' ]
5876
5892
artifact = frameworkArtifactName
5877
5893
library = libraryName
@@ -5905,6 +5921,7 @@ if (isAppleTarget(project)) {
5905
5921
5906
5922
codesign = false
5907
5923
framework(frameworkName) {
5924
+ enabled = ! isK2(project) // KT-56182
5908
5925
sources = [' objcexport' ]
5909
5926
bitcode = false
5910
5927
artifact = frameworkArtifactName
@@ -5921,11 +5938,13 @@ if (isAppleTarget(project)) {
5921
5938
5922
5939
frameworkTest(' testValuesGenericsFramework' ) {
5923
5940
framework(' ValuesGenerics' ) {
5941
+ enabled = ! isK2(project) // KT-56028
5924
5942
sources = [' objcexport/values.kt' , ' framework/values_generics' ]
5925
5943
}
5926
5944
swiftSources = [' framework/values_generics/' ]
5927
5945
}
5928
5946
5947
+ if (! isK2(project)) // KT-56271
5929
5948
frameworkTest(" testStdlibFramework" ) {
5930
5949
framework(' Stdlib' ) {
5931
5950
sources = [' framework/stdlib' ]
@@ -6251,6 +6270,10 @@ task buildKonanTests { t ->
6251
6270
6252
6271
// These tests should not be built into the TestRunner's test executable
6253
6272
def excludeList = [ " codegen/inline/returnLocalClassFromBlock.kt" ]
6273
+ if (isK2(project)) {
6274
+ excludeList + = " codegen/basics/const_infinity.kt" // KT-56189
6275
+ excludeList + = " runtime/basic/initializers4.kt" // KT-56189
6276
+ }
6254
6277
project. tasks
6255
6278
.withType(KonanStandaloneTest . class)
6256
6279
.each {
0 commit comments