@@ -10,21 +10,23 @@ class CompilationTests extends ParallelTesting {
10
10
11
11
// Positive tests ------------------------------------------------------------
12
12
13
- @ Test def compilePos : Unit =
14
- compileFilesInDir(" ../tests/pos" , defaultOptions).pos
13
+ @ Test def compilePos : Unit = {
14
+ compileList(" compileStdLib" , StdLibSources .whitelisted, scala2Mode.and(" -migration" , " -Yno-inline" )) +
15
+ compileFilesInDir(" ../tests/pos" , defaultOptions)
16
+ }.pos()
15
17
16
18
@ Test def compilePosScala2 : Unit =
17
19
compileFilesInDir(" ../tests/pos-scala2" , scala2Mode).pos()
18
20
19
21
@ Test def compilePosMixedFlags : Unit = {
20
- compileList(StdLibSources .whitelisted, scala2Mode.and(" -migration" , " -Yno-inline" )) +
21
22
compileFile(" ../tests/pos/nullarify.scala" , defaultOptions.and(" -Ycheck:nullarify" )) +
22
23
// this guy sucks, he changes the sourcefile itself:
23
24
// compileFile("../tests/pos-scala2/rewrites.scala", scala2Mode.and("-rewrite")) +
24
25
compileFile(" ../tests/pos-special/t8146a.scala" , allowDeepSubtypes) +
25
26
compileFile(" ../tests/pos-special/utf8encoded.scala" , explicitUTF8) +
26
27
compileFile(" ../tests/pos-special/utf16encoded.scala" , explicitUTF16) +
27
28
compileList(
29
+ " compileMixed" ,
28
30
List (
29
31
" ../tests/pos/B.scala" ,
30
32
" ../scala-scala/src/library/scala/collection/immutable/Seq.scala" ,
@@ -40,6 +42,7 @@ class CompilationTests extends ParallelTesting {
40
42
compileFile(" ../scala-scala/src/library/scala/collection/immutable/IndexedSeq.scala" , defaultOptions) +
41
43
compileFile(" ../scala-scala/src/library/scala/collection/parallel/mutable/ParSetLike.scala" , defaultOptions) +
42
44
compileList(
45
+ " parSetSubset" ,
43
46
List (
44
47
" ../scala-scala/src/library/scala/collection/parallel/mutable/ParSetLike.scala" ,
45
48
" ../scala-scala/src/library/scala/collection/parallel/mutable/ParSet.scala" ,
@@ -103,6 +106,7 @@ class CompilationTests extends ParallelTesting {
103
106
compileFile(" ../tests/pos/extmethods.scala" , defaultOptions) +
104
107
compileFile(" ../tests/pos/companions.scala" , defaultOptions) +
105
108
compileList(
109
+ " testNonCyclic" ,
106
110
List (
107
111
" ../compiler/src/dotty/tools/dotc/CompilationUnit.scala" ,
108
112
" ../compiler/src/dotty/tools/dotc/core/Types.scala" ,
0 commit comments