Skip to content

Commit fc7c190

Browse files
committed
Avoid non-determinism in stdlib test by sorting files
For some mysterious reason I still need to investigate, some invalid super-calls in the stdlib that should be detected by the previous commit are only detected when the files are compiled in a specific order, this is made more confusing by the order of listed files being non-deterministic by default. As a first step towards sanity, sort the files to avoid non-determinism and consistently detect the invalid super-calls.
1 parent 5cebc76 commit fc7c190

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/test/dotty/tools/TestSources.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ object TestSources {
2121
val acc2 = files.foldLeft(acc)((acc1, file) => if (file.isFile && file.getPath.endsWith(".scala")) file.getPath :: acc1 else acc1)
2222
files.foldLeft(acc2)((acc3, file) => if (file.isDirectory) collectAllFilesInDir(file, acc3) else acc3)
2323
}
24-
collectAllFilesInDir(new File(stdLibPath), Nil)
24+
collectAllFilesInDir(new File(stdLibPath), Nil).sorted
2525
}
2626

2727
// pos tests lists

0 commit comments

Comments
 (0)