[Native] Exclude on wasm initializers tests.
Tests use exceptions and workers that are not supported in wasm
This commit is contained in:
@@ -1506,34 +1506,40 @@ standaloneTest("initializers_eagerInitializationThreadLocal2") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
standaloneTest("initializers_workers1") {
|
standaloneTest("initializers_workers1") {
|
||||||
|
expectedFail = (project.testTarget == 'wasm32') // Workers are not supported
|
||||||
source = "codegen/initializers/workers1.kt"
|
source = "codegen/initializers/workers1.kt"
|
||||||
goldValue = "42\n3\n"
|
goldValue = "42\n3\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
standaloneTest("initializers_workers2") {
|
standaloneTest("initializers_workers2") {
|
||||||
|
expectedFail = (project.testTarget == 'wasm32') // Workers are not supported
|
||||||
source = "codegen/initializers/workers2.kt"
|
source = "codegen/initializers/workers2.kt"
|
||||||
goldValue = "42\n42\n"
|
goldValue = "42\n42\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
standaloneTest("initializers_failInInitializer1") {
|
standaloneTest("initializers_failInInitializer1") {
|
||||||
|
expectedFail = (project.testTarget == 'wasm32') // Uses exceptions.
|
||||||
source = "codegen/initializers/failInInitializer1.kt"
|
source = "codegen/initializers/failInInitializer1.kt"
|
||||||
goldValue = "caught\n"
|
goldValue = "caught\n"
|
||||||
flags = ['-Xir-property-lazy-initialization']
|
flags = ['-Xir-property-lazy-initialization']
|
||||||
}
|
}
|
||||||
|
|
||||||
standaloneTest("initializers_failInInitializer2") {
|
standaloneTest("initializers_failInInitializer2") {
|
||||||
|
expectedFail = (project.testTarget == 'wasm32') // Uses exceptions.
|
||||||
source = "codegen/initializers/failInInitializer2.kt"
|
source = "codegen/initializers/failInInitializer2.kt"
|
||||||
goldValue = "caught\ncaught2\n"
|
goldValue = "caught\ncaught2\n"
|
||||||
flags = ['-Xir-property-lazy-initialization']
|
flags = ['-Xir-property-lazy-initialization']
|
||||||
}
|
}
|
||||||
|
|
||||||
standaloneTest("initializers_failInInitializer3") {
|
standaloneTest("initializers_failInInitializer3") {
|
||||||
|
expectedFail = (project.testTarget == 'wasm32') // Uses exceptions.
|
||||||
source = "codegen/initializers/failInInitializer3.kt"
|
source = "codegen/initializers/failInInitializer3.kt"
|
||||||
goldValue = "caught\ncaught2\n"
|
goldValue = "caught\ncaught2\n"
|
||||||
flags = ['-Xir-property-lazy-initialization']
|
flags = ['-Xir-property-lazy-initialization']
|
||||||
}
|
}
|
||||||
|
|
||||||
standaloneTest("initializers_failInInitializer4") {
|
standaloneTest("initializers_failInInitializer4") {
|
||||||
|
expectedFail = (project.testTarget == 'wasm32') // Uses exceptions.
|
||||||
source = "codegen/initializers/failInInitializer4.kt"
|
source = "codegen/initializers/failInInitializer4.kt"
|
||||||
goldValue = "caught\ncaught2\n"
|
goldValue = "caught\ncaught2\n"
|
||||||
flags = ['-Xir-property-lazy-initialization']
|
flags = ['-Xir-property-lazy-initialization']
|
||||||
@@ -1550,11 +1556,13 @@ standaloneTest("initializers_when2") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
standaloneTest("initializers_throw1") {
|
standaloneTest("initializers_throw1") {
|
||||||
|
expectedFail = (project.testTarget == 'wasm32') // Uses exceptions.
|
||||||
source = "codegen/initializers/throw1.kt"
|
source = "codegen/initializers/throw1.kt"
|
||||||
goldValue = "42\n"
|
goldValue = "42\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
standaloneTest("initializers_throw2") {
|
standaloneTest("initializers_throw2") {
|
||||||
|
expectedFail = (project.testTarget == 'wasm32') // Uses exceptions.
|
||||||
source = "codegen/initializers/throw2.kt"
|
source = "codegen/initializers/throw2.kt"
|
||||||
goldValue = "42\n"
|
goldValue = "42\n"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user