From 6a16c1edf9fe69b175a226ad0744128d0e9b098c Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Tue, 23 Mar 2021 20:33:57 +0100 Subject: [PATCH] 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. --- .../dotty/tools/dotc/transform/PatmatExhaustivityTest.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/test/dotty/tools/dotc/transform/PatmatExhaustivityTest.scala b/compiler/test/dotty/tools/dotc/transform/PatmatExhaustivityTest.scala index fcaa3004ec19..58e1133180ec 100644 --- a/compiler/test/dotty/tools/dotc/transform/PatmatExhaustivityTest.scala +++ b/compiler/test/dotty/tools/dotc/transform/PatmatExhaustivityTest.scala @@ -18,7 +18,7 @@ import org.junit.Test class PatmatExhaustivityTest { val testsDir = "tests/patmat" // stop-after: patmatexhaust-huge.scala crash compiler - val options = List("-color:never", "-Ystop-after:explicitSelf", "-Ycheck-all-patmat", "-classpath", TestConfiguration.basicClasspath) + val options = List("-pagewidth", "80", "-color:never", "-Ystop-after:explicitSelf", "-Ycheck-all-patmat", "-classpath", TestConfiguration.basicClasspath) private def compile(files: Seq[String]): Seq[String] = { val stringBuffer = new StringWriter()