diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2016-12-19 13:42:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-19 13:42:28 +0100 |
commit | 51042d1834674e9c56a8247ab76252a74d5bbc07 (patch) | |
tree | 6ef9a6e0509dd77f9f5ee6d116af4c65ca403fa8 /compiler/test/dotc | |
parent | c657bbfa18b052245d662d0136c3b90df5bfcc78 (diff) | |
parent | e6df566b91935088882f3e02d382b5a2cb6c1f73 (diff) | |
download | dotty-51042d1834674e9c56a8247ab76252a74d5bbc07.tar.gz dotty-51042d1834674e9c56a8247ab76252a74d5bbc07.tar.bz2 dotty-51042d1834674e9c56a8247ab76252a74d5bbc07.zip |
Merge pull request #1831 from dotty-staging/fix/dotty-on-dotty
Fix JUnit compilation of dotty by dotty
Diffstat (limited to 'compiler/test/dotc')
-rw-r--r-- | compiler/test/dotc/tests.scala | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/compiler/test/dotc/tests.scala b/compiler/test/dotc/tests.scala index 84cf1a051..eecb068fe 100644 --- a/compiler/test/dotc/tests.scala +++ b/compiler/test/dotc/tests.scala @@ -98,6 +98,9 @@ class tests extends CompilerTest { val typerDir = dotcDir + "typer/" val libDir = "../library/src/" + def dottyBootedLib = compileDir(libDir, ".", List("-deep", "-Ycheck-reentrant", "-strict") ::: defaultOptions)(allowDeepSubtypes) // note the -deep argument + def dottyDependsOnBootedLib = compileDir(dottyDir, ".", List("-deep", "-Ycheck-reentrant", "-strict") ::: defaultOptions)(allowDeepSubtypes) // note the -deep argument + @Before def cleanup(): Unit = { // remove class files from stdlib and tests compilation Directory(defaultOutputDir + "scala").deleteRecursively() @@ -253,11 +256,10 @@ class tests extends CompilerTest { |../scala-scala/src/library/scala/collection/generic/GenSeqFactory.scala""".stripMargin) @Test def compileIndexedSeq = compileLine("../scala-scala/src/library/scala/collection/immutable/IndexedSeq.scala") - // Not a junit test anymore since it is order dependent - def dottyBootedLib = compileDir(libDir, ".")(allowDeepSubtypes) // note the -deep argument - - // Not a junit test anymore since it is order dependent - def dottyDependsOnBootedLib = compileDir(dottyDir, ".")(allowDeepSubtypes) // note the -deep argument + @Test def dotty = { + dottyBootedLib + dottyDependsOnBootedLib + } @Test def dotc_ast = compileDir(dotcDir, "ast") @Test def dotc_config = compileDir(dotcDir, "config") |