Separate incremental JS legacy / standard incremental test fails

This commit is contained in:
Mikhail Glukhikh
2023-09-06 16:35:04 +02:00
committed by Space Team
parent fc2041e5b9
commit 2dd9bdb89d
2 changed files with 5 additions and 1 deletions
@@ -56,9 +56,11 @@ abstract class AbstractIncrementalCompilerRunnerTestBase<Args : CommonCompilerAr
parseCommandLineArguments(parseAdditionalArgs(testDir), this) parseCommandLineArguments(parseAdditionalArgs(testDir), this)
} }
open fun failFile(testDir: File): File = testDir.resolve(FAIL_FILE_NAME)
fun doTest(path: String) { fun doTest(path: String) {
val testDir = File(path) val testDir = File(path)
val failFile = testDir.resolve(FAIL_FILE_NAME) val failFile = failFile(testDir)
var testPassed = false var testPassed = false
try { try {
doTestImpl(testDir) doTestImpl(testDir)
@@ -47,4 +47,6 @@ abstract class AbstractIncrementalK1JsLegacyCompilerRunnerTest : AbstractIncreme
} }
protected open val scopeExpansionMode = CompileScopeExpansionMode.NEVER protected open val scopeExpansionMode = CompileScopeExpansionMode.NEVER
override fun failFile(testDir: File): File = testDir.resolve("fail_js_legacy.txt")
} }