From 29785cf62a673f3f13b6277b3419474b8a13a648 Mon Sep 17 00:00:00 2001 From: Martin Duhem Date: Tue, 24 Oct 2017 17:25:09 +0200 Subject: [PATCH] Fix reproduction steps for `JointCompilationSource` When a compilation test that used a `JointCompilationSource` would fail, the test framework would generate reproduction instructions that could potentially include files that were not source-files, thus preventing people from simply copy-pasting the reproduction. --- compiler/test/dotty/tools/vulpix/ParallelTesting.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/test/dotty/tools/vulpix/ParallelTesting.scala b/compiler/test/dotty/tools/vulpix/ParallelTesting.scala index 7e81864cb095..13de0f45d7c0 100644 --- a/compiler/test/dotty/tools/vulpix/ParallelTesting.scala +++ b/compiler/test/dotty/tools/vulpix/ParallelTesting.scala @@ -98,8 +98,8 @@ trait ParallelTesting extends RunnerOrchestration { self => } self match { - case JointCompilationSource(_, files, _, _) => { - files.map(_.getAbsolutePath).foreach { path => + case source: JointCompilationSource => { + source.sourceFiles.map(_.getAbsolutePath).foreach { path => sb.append("\\\n ") sb.append(path) sb += ' '