Skip to content

Commit 0862416

Browse files
committed
[JS TESTS] Don't run ES6 test on win & mac till j2v8 issue is fixed.
1 parent 5016226 commit 0862416

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

js/js.tests/test/org/jetbrains/kotlin/js/test/BasicIrBoxTest.kt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ abstract class BasicIrBoxTest(
5656

5757
val runEs6Mode: Boolean = getBoolean("kotlin.js.ir.es6", false)
5858

59+
private val osName: String = System.getProperty("os.name").toLowerCase()
60+
5961
// TODO Design incremental compilation for IR and add test support
6062
override val incrementalCompilationChecksEnabled = false
6163

@@ -190,6 +192,17 @@ abstract class BasicIrBoxTest(
190192
}
191193
}
192194

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+
193206
override fun runGeneratedCode(
194207
jsFiles: List<String>,
195208
testModuleName: String?,

0 commit comments

Comments
 (0)