diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-09-29 17:21:10 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-10-11 06:40:36 +0200 |
commit | cedf12b547792fbf6a31a8903d142343d5ed8741 (patch) | |
tree | 72fd2d748f2fbd36e86a10bf6d1ff5be8e97dedf /test | |
parent | 7121ff38439c0b05fdc63d2d64565588448795df (diff) | |
download | dotty-cedf12b547792fbf6a31a8903d142343d5ed8741.tar.gz dotty-cedf12b547792fbf6a31a8903d142343d5ed8741.tar.bz2 dotty-cedf12b547792fbf6a31a8903d142343d5ed8741.zip |
Cleanup tests.
Diffstat (limited to 'test')
-rw-r--r-- | test/dotc/tests.scala | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala index e1c15e91e..3fb947b01 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -20,6 +20,8 @@ class tests extends CompilerTest { /*,"-uniqid", "-explaintypes", "-verbose", "-Ylog:splitter", "-Xprompt", "-YnoDoubleBindings"*/ ) + val allowDeepSubtypes = defaultOptions diff List("-YnoDeepSubtypes") + val twice = List("#runs", "2", "-YnoDoubleBindings", "-Ystop-before:terminal") val doErase = List("-Ystop-before:terminal") @@ -100,30 +102,23 @@ class tests extends CompilerTest { @Test def neg_badAuxConstr = compileFile(negDir, "badAuxConstr", xerrors = 2) @Test def neg_typetest = compileFile(negDir, "typetest", xerrors = 1) - @Test def dotc = compileDir(dotcDir + "tools/dotc", twice) + @Test def dotc = compileDir(dotcDir + "tools/dotc", twice)(allowDeepSubtypes) @Test def dotc_ast = compileDir(dotcDir + "tools/dotc/ast", twice) @Test def dotc_config = compileDir(dotcDir + "tools/dotc/config", twice) - @Test def dotc_core = compileDir(dotcDir + "tools/dotc/core", twice) - @Test def dotc_core_pickling = compileDir(dotcDir + "tools/dotc/core/pickling", twice)( - defaultOptions diff List("-YnoDeepSubtypes")) - // @odesky, fails on assertion in TypeComparer:425 (fixed) + @Test def dotc_core = compileDir(dotcDir + "tools/dotc/core", twice)(allowDeepSubtypes) + @Test def dotc_core_pickling = compileDir(dotcDir + "tools/dotc/core/pickling", twice)(allowDeepSubtypes) @Test def dotc_transform = compileDir(dotcDir + "tools/dotc/transform", twice) - // @odersky, fails with datarace (fixed) - // now fails with unapplied setter generated by pattern matcher: - // at PatternMatcher.scala:363: missing arguments for setter altss_= in class AlternativesTreeMaker @Test def dotc_parsing = compileDir(dotcDir + "tools/dotc/parsing", twice) @Test def dotc_printing = compileDir(dotcDir + "tools/dotc/printing", twice) - // @odersky, elimByName creates symbol with incorrect owner (fixed) @Test def dotc_reporting = compileDir(dotcDir + "tools/dotc/reporting", twice) @Test def dotc_typer = compileDir(dotcDir + "tools/dotc/typer", twice) - // @odersky, elimByName creates symbol with incorrect owner (fixed) @Test def dotc_util = compileDir(dotcDir + "tools/dotc/util", twice) @Test def tools_io = compileDir(dotcDir + "tools/io", twice) - @Test def tools = compileDir(dotcDir + "tools", twice) + @Test def tools = compileDir(dotcDir + "tools", twice)(allowDeepSubtypes) @Test def testNonCyclic = compileArgs(Array( dotcDir + "tools/dotc/CompilationUnit.scala", |