aboutsummaryrefslogtreecommitdiff
path: root/test/dotc/tests.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-05-19 17:14:11 +0200
committerMartin Odersky <odersky@gmail.com>2016-05-19 17:14:11 +0200
commitf1d95c286c802504b00b469bc924a39760fc9e73 (patch)
tree07f7c0f0a9a69f4e324d177ce6a3553ab07b49a0 /test/dotc/tests.scala
parentc29e9754b94cc352337791c9e36131f5b8be385d (diff)
downloaddotty-f1d95c286c802504b00b469bc924a39760fc9e73.tar.gz
dotty-f1d95c286c802504b00b469bc924a39760fc9e73.tar.bz2
dotty-f1d95c286c802504b00b469bc924a39760fc9e73.zip
Fix test
The previous additional test messed up partest in that file Types.scala was copied twice into the partest-generated directory and then the pos/core tests would compile both copies. This gave a double definition which manifested itself under -Yno-double-bindings as an assertion error. Ideally, partest generation would guard against this situation. For now I avoid the problem by compiling the whole of core without -Ycheck, not jst Types.scala.
Diffstat (limited to 'test/dotc/tests.scala')
-rw-r--r--test/dotc/tests.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala
index de35d281b..3528dfa72 100644
--- a/test/dotc/tests.scala
+++ b/test/dotc/tests.scala
@@ -156,8 +156,8 @@ class tests extends CompilerTest {
@Test def dotc_ast = compileDir(dotcDir, "ast")
@Test def dotc_config = compileDir(dotcDir, "config")
- @Test def dotc_core = compileDir(dotcDir, "core")("-Yno-double-bindings" :: allowDeepSubtypes)// twice omitted to make tests run faster
- @Test def dotc_core_Types = compileFile(dotcDir, "core/Types")(noCheckOptions)
+ @Test def dotc_core = compileDir(dotcDir, "core")(allowDeepSubtypes)// twice omitted to make tests run faster
+ @Test def dotc_core_nocheck = compileDir(dotcDir, "core")(noCheckOptions)
// This directory doesn't exist anymore
// @Test def dotc_core_pickling = compileDir(coreDir, "pickling")(allowDeepSubtypes)// twice omitted to make tests run faster