Skip to content

Commit c555a4a

Browse files
committed
Fix booted tests not compiling anything
This was broken in 06a3d47 when the -deep argument was removed
1 parent 36dcd93 commit c555a4a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

compiler/test/dotc/tests.scala

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ class tests extends CompilerTest {
9898
val typerDir = dotcDir + "typer/"
9999
val libDir = "../library/src/"
100100

101+
def dottyBootedLib = compileDir(libDir, ".", List("-deep", "-Ycheck-reentrant", "-strict") ::: defaultOptions)(allowDeepSubtypes) // note the -deep argument
102+
def dottyDependsOnBootedLib = compileDir(dottyDir, ".", List("-deep", "-Ycheck-reentrant", "-strict") ::: defaultOptions)(allowDeepSubtypes) // note the -deep argument
103+
101104
@Before def cleanup(): Unit = {
102105
// remove class files from stdlib and tests compilation
103106
Directory(defaultOutputDir + "scala").deleteRecursively()
@@ -253,12 +256,6 @@ class tests extends CompilerTest {
253256
|../scala-scala/src/library/scala/collection/generic/GenSeqFactory.scala""".stripMargin)
254257
@Test def compileIndexedSeq = compileLine("../scala-scala/src/library/scala/collection/immutable/IndexedSeq.scala")
255258

256-
// Not a junit test anymore since it is order dependent
257-
def dottyBootedLib = compileDir(libDir, ".")(allowDeepSubtypes) // note the -deep argument
258-
259-
// Not a junit test anymore since it is order dependent
260-
def dottyDependsOnBootedLib = compileDir(dottyDir, ".")(allowDeepSubtypes) // note the -deep argument
261-
262259
@Test def dotc_ast = compileDir(dotcDir, "ast")
263260
@Test def dotc_config = compileDir(dotcDir, "config")
264261
@Test def dotc_core = compileDir(dotcDir, "core")(allowDeepSubtypes)// twice omitted to make tests run faster

0 commit comments

Comments
 (0)