@@ -23,19 +23,16 @@ class tests extends CompilerTest {
23
23
" -Ycheck:tailrec,resolveSuper,mixin,restoreScopes" ,
24
24
" -d" , defaultOutputDir
25
25
)
26
- val doEmitBytecode = List (" -Ystop-before:terminal" )
27
- val failedbyName = List (" -Ystop-before:collectEntryPoints" ) // #288
28
26
val testPickling = List (" -Xprint-types" , " -Ytest-pickler" , " -Ystop-after:pickler" )
29
27
30
- val failedOther = List (" -Ystop-before:collectEntryPoints" ) // some non-obvious reason. need to look deeper
31
28
val twice = List (" #runs" , " 2" )
32
29
val staleSymbolError : List [String ] = List ()
33
30
34
31
val allowDeepSubtypes = defaultOptions diff List (" -Yno-deep-subtypes" )
35
32
val allowDoubleBindings = defaultOptions diff List (" -Yno-double-bindings" )
36
33
37
34
val testsDir = " ./tests/"
38
- val posDir = testsDir + " pos/"
35
+ val posDir = testsDir + " pos/"
39
36
val posSpecialDir = testsDir + " pos-special/"
40
37
val negDir = testsDir + " neg/"
41
38
val newDir = testsDir + " new/"
@@ -50,7 +47,7 @@ class tests extends CompilerTest {
50
47
@ Test def pickle_ast = compileDir(dotcDir, " ast" , testPickling)
51
48
52
49
// @Test def pickle_core = compileDir(dotcDir, "core", testPickling, xerrors = 2) // two spurious comparison errors in Types and TypeOps
53
-
50
+
54
51
@ Test def pos_t2168_pat = compileFile(posDir, " t2168" , twice)
55
52
@ Test def pos_erasure = compileFile(posDir, " erasure" , twice)
56
53
@ Test def pos_Coder () = compileFile(posDir, " Coder" , twice)
@@ -121,7 +118,7 @@ class tests extends CompilerTest {
121
118
@ Test def neg_tailcall = compileFile(negTailcallDir, " tailrec" , xerrors = 7 )
122
119
@ Test def neg_tailcall2 = compileFile(negTailcallDir, " tailrec-2" , xerrors = 2 )
123
120
@ Test def neg_tailcall3 = compileFile(negTailcallDir, " tailrec-3" , xerrors = 2 )
124
-
121
+
125
122
@ Test def neg_t1279a = compileFile(negDir, " t1279a" , xerrors = 1 )
126
123
@ Test def neg_t1843_variances = compileFile(negDir, " t1843-variances" , xerrors = 1 )
127
124
@ Test def neg_t2660_ambi = compileFile(negDir, " t2660" , xerrors = 2 )
@@ -142,22 +139,14 @@ class tests extends CompilerTest {
142
139
@ Test def neg_instantiateAbstract = compileFile(negDir, " instantiateAbstract" , xerrors = 8 )
143
140
@ Test def neg_selfInheritance = compileFile(negDir, " selfInheritance" , xerrors = 5 )
144
141
145
- @ Test def dotc = compileDir(toolsDir, " dotc" , failedOther)( allowDeepSubtypes ++ twice) // see dotc_core
146
- @ Test def dotc_ast = compileDir(dotcDir, " ast " , failedOther ++ twice)
147
- // similar to dotc_core_pickling but for another anon class. Still during firstTransform
142
+ @ Test def dotc = compileDir(toolsDir, " dotc" , " -deep " :: allowDeepSubtypes ++ twice) // note the -deep argument
143
+
144
+ @ Test def dotc_ast = compileDir(dotcDir, " ast " )
148
145
@ Test def dotc_config = compileDir(dotcDir, " config" )
149
- @ Test def dotc_core = compileDir(dotcDir, " core" , failedOther)(" -Yno-double-bindings" :: allowDeepSubtypes)// twice omitted to make tests run faster
150
- // error: error while loading ConstraintHandling$$anon$1$,
151
- // class file 'target/scala-2.11/dotty_2.11-0.1-SNAPSHOT.jar(dotty/tools/dotc/core/ConstraintHandling$$anon$1.class)'
152
- // has location not matching its contents: contains class $anon
146
+ @ Test def dotc_core = compileDir(dotcDir, " core" )(" -Yno-double-bindings" :: allowDeepSubtypes)// twice omitted to make tests run faster
147
+
153
148
154
- @ Test def dotc_core_pickling = compileDir(coreDir, " pickling" , failedOther)(allowDeepSubtypes)// twice omitted to make tests run faster
155
- // exception caught when loading class ClassfileParser$$anon$1: dotty.tools.dotc.core.Denotations$NotDefinedHere:
156
- // demanding denotation of module class ClassfileParser$$anon$1$ at phase frontend(1) outside defined interval:
157
- // defined periods are Period(31..36, run = 2) Period(3..24, run = 2) Period(25..26, run = 2)
158
- // Period(27..28, run = 2) Period(29..29, run = 2) Period(30..30, run = 2)
159
- // inside FirstTransform at dotty.tools.dotc.transform.FirstTransform.transform(FirstTransform.scala:33)
160
- // weird.
149
+ @ Test def dotc_core_pickling = compileDir(coreDir, " pickling" )(allowDeepSubtypes)// twice omitted to make tests run faster
161
150
162
151
@ Test def dotc_transform = compileDir(dotcDir, " transform" )// twice omitted to make tests run faster
163
152
@@ -167,19 +156,16 @@ class tests extends CompilerTest {
167
156
168
157
@ Test def dotc_reporting = compileDir(dotcDir, " reporting" ) // twice omitted to make tests run faster
169
158
170
- @ Test def dotc_typer = compileDir(dotcDir, " typer" , failedOther )// twice omitted to make tests run faster
159
+ @ Test def dotc_typer = compileDir(dotcDir, " typer" )// twice omitted to make tests run faster
171
160
// error: error while loading Checking$$anon$2$,
172
161
// class file 'target/scala-2.11/dotty_2.11-0.1-SNAPSHOT.jar(dotty/tools/dotc/typer/Checking$$anon$2.class)'
173
162
// has location not matching its contents: contains class $anon
174
163
175
- @ Test def dotc_util = compileDir(dotcDir, " util" , failedOther ++ twice)
176
- // java.lang.ClassCastException: dotty.tools.dotc.core.Types$NoType$ cannot be cast to dotty.tools.dotc.core.Types$ClassInfo
177
- // at dotty.tools.dotc.core.SymDenotations$ClassDenotation.classInfo(SymDenotations.scala:1026)
178
- // at dotty.tools.dotc.transform.ExtensionMethods.transform(ExtensionMethods.scala:38)
164
+ @ Test def dotc_util = compileDir(dotcDir, " util" ) // twice omitted to make tests run faster
179
165
180
- @ Test def tools_io = compileDir(toolsDir, " io" , failedOther ++ twice ) // inner class has symbol <none>
166
+ @ Test def tools_io = compileDir(toolsDir, " io" ) // inner class has symbol <none>
181
167
182
- @ Test def helloWorld = compileFile(posDir, " HelloWorld" , twice )
168
+ @ Test def helloWorld = compileFile(posDir, " HelloWorld" )
183
169
@ Test def labels = compileFile(posDir, " Labels" , twice)
184
170
// @Test def tools = compileDir(dottyDir, "tools", "-deep" :: Nil)(allowDeepSubtypes)
185
171
@@ -196,6 +182,5 @@ class tests extends CompilerTest {
196
182
197
183
val javaDir = " ./tests/pos/java-interop/"
198
184
@ Test def java_all = compileFiles(javaDir, twice)
199
-
200
185
// @Test def dotc_compilercommand = compileFile(dotcDir + "config/", "CompilerCommand")
201
186
}
0 commit comments