From ff95503eba99e542605cb085894f35f53c4ef5b8 Mon Sep 17 00:00:00 2001 From: VladimirNik Date: Thu, 18 Feb 2016 19:10:57 +0100 Subject: Neg tests: filename checking updated --- test/test/CompilerTest.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test/CompilerTest.scala') diff --git a/test/test/CompilerTest.scala b/test/test/CompilerTest.scala index ed839e14c..b8cd88f2d 100644 --- a/test/test/CompilerTest.scala +++ b/test/test/CompilerTest.scala @@ -197,7 +197,7 @@ abstract class CompilerTest { assert(errorLines.length == nerrors, s"Not enough errors recorded.") val allFiles = (allArgs filter { - case arg => arg.endsWith(".scala") || arg.endsWith(".java") + arg => !arg.startsWith("-") && (arg.endsWith(".scala") || arg.endsWith(".java")) }).toList val expectedErrorsPerFile = allFiles.map(getErrors(_)) -- cgit v1.2.3