Skip to content

Commit 3e555e9

Browse files
Merge pull request #5571 from dotty-staging/fix-#5565
Fix #5565: Revert the {pos,run}-separate-compilation changes
2 parents 129963b + 6a6f704 commit 3e555e9

File tree

291 files changed

+13
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

291 files changed

+13
-4
lines changed

compiler/test/dotc/pos-test-pickling.blacklist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ t2712-5.scala
2727
t2726
2828
t2741
2929
t284-pos.scala
30+
t3249
3031
t3419
3132
t3452f.scala
33+
t3486
3234
t3612.scala
3335
t3864
3436
t3999

compiler/test/dotc/run-test-pickling.blacklist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ i5257.scala
44
lazy-implicit-lists.scala
55
lazy-implicit-nums.scala
66
lazy-traits.scala
7+
t3452d
8+
t3452e
9+
t3452g
10+
t7374
711
t8133
812
t8133b
913
tuples1.scala

compiler/test/dotty/tools/dotc/CompilationTests.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,8 @@ class CompilationTests extends ParallelTesting {
9090
compileFilesInDir("tests/new", defaultOptions) +
9191
compileFilesInDir("tests/pos-scala2", scala2Mode) +
9292
compileFilesInDir("tests/pos", defaultOptions) +
93-
compileFilesInDir("tests/pos-separate-compilation", defaultOptions) +
9493
compileFilesInDir("tests/pos-deep-subtype", allowDeepSubtypes) +
9594
compileFilesInDir("tests/pos-kind-polymorphism", defaultOptions and "-Ykind-polymorphism") +
96-
compileDir("tests/pos-separate-compilation/i1137-1", defaultOptions) +
9795
compileFile(
9896
// succeeds despite -Xfatal-warnings because of -nowarn
9997
"tests/neg-custom-args/fatal-warnings/xfatalWarnings.scala",
@@ -173,7 +171,6 @@ class CompilationTests extends ParallelTesting {
173171
implicit val testGroup: TestGroup = TestGroup("runAll")
174172
compileFilesInDir("tests/run-custom-args/Yretain-trees", defaultOptions and "-Yretain-trees") +
175173
compileFile("tests/run-custom-args/tuple-cons.scala", allowDeepSubtypes) +
176-
compileFilesInDir("tests/run-separate-compilation", defaultOptions) +
177174
compileFile("tests/run-custom-args/i5256.scala", allowDeepSubtypes) +
178175
compileFilesInDir("tests/run", defaultOptions)
179176
}.checkRuns()

compiler/test/dotty/tools/vulpix/ParallelTesting.scala

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,9 +1242,15 @@ trait ParallelTesting extends RunnerOrchestration { self =>
12421242

12431243
val (dirs, files) = compilationTargets(sourceDir, fileFilter)
12441244

1245+
val isPicklerTest = flags.options.contains("-Ytest-pickler")
1246+
def ignoreDir(dir: JFile): Boolean = {
1247+
// Pickler tests stop after pickler not producing class/tasty files. The second part of the compilation
1248+
// will not be able to compile due to the missing artifacts from the first part.
1249+
isPicklerTest && dir.listFiles().exists(file => file.getName.endsWith("_2.scala") || file.getName.endsWith("_2.java"))
1250+
}
12451251
val targets =
12461252
files.map(f => JointCompilationSource(testGroup.name, Array(f), flags, createOutputDirsForFile(f, sourceDir, outDir))) ++
1247-
dirs.map(dir => SeparateCompilationSource(testGroup.name, dir, flags, createOutputDirsForDir(dir, sourceDir, outDir)))
1253+
dirs.collect { case dir if !ignoreDir(dir) => SeparateCompilationSource(testGroup.name, dir, flags, createOutputDirsForDir(dir, sourceDir, outDir)) }
12481254

12491255
// Create a CompilationTest and let the user decide whether to execute a pos or a neg test
12501256
new CompilationTest(targets)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)