Skip to content

Commit 51042d1

Browse files
authored
Merge pull request #1831 from dotty-staging/fix/dotty-on-dotty
Fix JUnit compilation of dotty by dotty
2 parents c657bbf + e6df566 commit 51042d1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

compiler/test/dotc/tests.scala

Lines changed: 7 additions & 5 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,11 +256,10 @@ 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
259+
@Test def dotty = {
260+
dottyBootedLib
261+
dottyDependsOnBootedLib
262+
}
261263

262264
@Test def dotc_ast = compileDir(dotcDir, "ast")
263265
@Test def dotc_config = compileDir(dotcDir, "config")

0 commit comments

Comments
 (0)