Skip to content

Commit 9dd77f5

Browse files
committed
Do not harcode other compile -pagewidth
1 parent c5d770f commit 9dd77f5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

compiler/test/dotty/tools/vulpix/ParallelTesting.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
549549
else o
550550
}.mkString(JFile.pathSeparator)
551551

552-
val pageWidth = 80
552+
val pageWidth = TestConfiguration.pageWidth - 20
553553
val flags1 = flags.copy(defaultClassPath = substituteClasspath(flags.defaultClassPath))
554554
.withClasspath(targetDir.getPath)
555555
.and("-d", targetDir.getPath)

compiler/test/dotty/tools/vulpix/TestConfiguration.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ import java.io.File
66

77
object TestConfiguration {
88

9+
val pageWidth = 120
10+
911
val noCheckOptions = Array(
10-
"-pagewidth", "120",
12+
"-pagewidth", pageWidth.toString,
1113
"-color:never",
1214
"-Xtarget", defaultTarget
1315
)

0 commit comments

Comments
 (0)