Skip to content

Commit 38cc836

Browse files
committed
Disable pos test as it is run twice in bytecodeIdemporency.
1 parent b6a6c47 commit 38cc836

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

compiler/test/dotty/tools/dotc/CompilationTests.scala

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package dotty
22
package tools
33
package dotc
44

5-
import org.junit.{ Test, BeforeClass, AfterClass }
5+
import org.junit.{ Test, BeforeClass, AfterClass, Ignore }
66

77
import java.nio.file._
88
import java.util.stream.{ Stream => JStream }
@@ -27,13 +27,14 @@ class CompilationTests extends ParallelTesting {
2727

2828
// Positive tests ------------------------------------------------------------
2929

30-
@Test def compilePos: Unit = {
31-
compileList("compileStdLib", StdLibSources.whitelisted, scala2Mode.and("-migration", "-Yno-inline")) +
32-
compileFilesInDir("../tests/pos", defaultOptions)
33-
}.checkCompile()
30+
@Ignore("Redundant test (tested twice in bytecodeIdemporency with defaultOptions + \"-YemitTasty\")")
31+
@Test def compilePos: Unit =
32+
compileFilesInDir("../tests/pos", defaultOptions).checkCompile()
3433

35-
@Test def compilePosScala2: Unit =
34+
@Test def compilePosScala2: Unit = {
35+
compileList("compileStdLib", StdLibSources.whitelisted, scala2Mode.and("-migration", "-Yno-inline")) +
3636
compileFilesInDir("../tests/pos-scala2", scala2Mode).checkCompile()
37+
}.checkCompile()
3738

3839
@Test def compilePosMixedFlags: Unit = {
3940
compileFile("../tests/pos/nullarify.scala", defaultOptions.and("-Ycheck:nullarify")) +

0 commit comments

Comments
 (0)