aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2017-03-31 13:25:45 +0200
committerGitHub <noreply@github.com>2017-03-31 13:25:45 +0200
commita0c0b605110980abb5d993dadcc943d148e8e262 (patch)
treeb2e2a4139515abd97e0c242fee273ed249ce580c
parent4f53a1d789fa68c25d885114d59a7971a795a1d0 (diff)
parentbbd9aeb68b8e1690c24a598c55fc7c1acc89b71f (diff)
downloaddotty-a0c0b605110980abb5d993dadcc943d148e8e262.tar.gz
dotty-a0c0b605110980abb5d993dadcc943d148e8e262.tar.bz2
dotty-a0c0b605110980abb5d993dadcc943d148e8e262.zip
Merge pull request #2160 from dotty-staging/make-testing-more-robust
Make testing more robust
-rw-r--r--compiler/test/dotty/tools/dotc/ParallelTesting.scala5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/test/dotty/tools/dotc/ParallelTesting.scala b/compiler/test/dotty/tools/dotc/ParallelTesting.scala
index 289351d81..a81eb4d3a 100644
--- a/compiler/test/dotty/tools/dotc/ParallelTesting.scala
+++ b/compiler/test/dotty/tools/dotc/ParallelTesting.scala
@@ -920,9 +920,8 @@ trait ParallelTesting { self =>
private def compilationTargets(sourceDir: JFile): (List[JFile], List[JFile]) =
sourceDir.listFiles.foldLeft((List.empty[JFile], List.empty[JFile])) { case ((dirs, files), f) =>
if (f.isDirectory) (f :: dirs, files)
- else if (f.getName.endsWith(".check")) (dirs, files)
- else if (f.getName.endsWith(".flags")) (dirs, files)
- else (dirs, f :: files)
+ else if (isSourceFile(f)) (dirs, f :: files)
+ else (dirs, files)
}
/** Gets the name of the calling method via reflection.