Skip to content

Commit 6a16c1e

Browse files
committed
Fix PatmatExhaustivityTest failing depending on pagewidth
Now that pagewidth is computed based on the terminal size, it needs to be hardcoded for tests that compare the compiler output against a checkfile.
1 parent 46eb23e commit 6a16c1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/test/dotty/tools/dotc/transform/PatmatExhaustivityTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import org.junit.Test
1818
class PatmatExhaustivityTest {
1919
val testsDir = "tests/patmat"
2020
// stop-after: patmatexhaust-huge.scala crash compiler
21-
val options = List("-color:never", "-Ystop-after:explicitSelf", "-Ycheck-all-patmat", "-classpath", TestConfiguration.basicClasspath)
21+
val options = List("-pagewidth", "80", "-color:never", "-Ystop-after:explicitSelf", "-Ycheck-all-patmat", "-classpath", TestConfiguration.basicClasspath)
2222

2323
private def compile(files: Seq[String]): Seq[String] = {
2424
val stringBuffer = new StringWriter()

0 commit comments

Comments
 (0)