Skip to content

Commit 5e8e2c4

Browse files
test negtest path with / rather than path separator
1 parent 32819e2 commit 5e8e2c4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

test/dotty/partest/DPConsoleRunner.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ class DPTestRunner(testFile: File, suiteRunner: DPSuiteRunner) extends nest.Runn
209209
import TestState.{ Crash, Fail }
210210
import scala.reflect.internal.FatalError
211211

212+
println(s"!!!!!!!running neg test with checkFile $checkFile")
213+
212214
sealed abstract class NegTestState
213215
// Don't get confused, the neg test passes when compilation fails for at
214216
// least one round (optionally checking the number of compiler errors and

test/test/CompilerTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ abstract class CompilerTest {
228228

229229
private def expectedErrors(filePath: String): List[ErrorsInFile] = expectedErrors(List(filePath))
230230

231-
private def isNegTest(testPath: String) = testPath.contains(JFile.separator + "neg" + JFile.separator)
231+
private def isNegTest(testPath: String) = testPath.contains("/neg/")
232232

233233
private def compileArgs(args: Array[String], expectedErrorsPerFile: List[ErrorsInFile])
234234
(implicit defaultOptions: List[String]): Unit = {

0 commit comments

Comments
 (0)