File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
js/js.tests/test/org/jetbrains/kotlin/js/test Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ abstract class BasicIrBoxTest(
56
56
57
57
val runEs6Mode: Boolean = getBoolean(" kotlin.js.ir.es6" , false )
58
58
59
+ private val osName: String = System .getProperty(" os.name" ).toLowerCase()
60
+
59
61
// TODO Design incremental compilation for IR and add test support
60
62
override val incrementalCompilationChecksEnabled = false
61
63
@@ -190,6 +192,17 @@ abstract class BasicIrBoxTest(
190
192
}
191
193
}
192
194
195
+ override fun dontRunOnSpecificPlatform (targetBackend : TargetBackend ): Boolean {
196
+ if (targetBackend != TargetBackend .JS_IR_ES6 ) return false
197
+ if (! runEs6Mode) return false
198
+
199
+ // TODO: Since j2v8 does not support ES6 on mac and windows, temporary don't run such test on those platforms.
200
+ if (osName.indexOf(" win" ) >= 0 ) return true
201
+ if (osName.indexOf(" mac" ) >= 0 || osName.indexOf(" darwin" ) >= 0 ) return true
202
+
203
+ return false
204
+ }
205
+
193
206
override fun runGeneratedCode (
194
207
jsFiles : List <String >,
195
208
testModuleName : String? ,
You can’t perform that action at this time.
0 commit comments