From daa6891bf478775e3f9b84b44019cae0db03b12e Mon Sep 17 00:00:00 2001 From: Miles Sabin Date: Thu, 4 Oct 2018 10:48:10 +0100 Subject: [PATCH] Flip messages for neg test pass/fail --- 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 0fcd581c1f48..5e0336be6cdb 100644 --- a/compiler/test/dotty/tools/vulpix/ParallelTesting.scala +++ b/compiler/test/dotty/tools/vulpix/ParallelTesting.scala @@ -984,10 +984,10 @@ trait ParallelTesting extends RunnerOrchestration { self => cleanup() - if (!shouldFail && test.didFail) { + if (shouldFail && !test.didFail) { fail(s"Neg test shouldn't have failed, but did. Reasons:\n${ reasonsForFailure(test) }") } - else if (shouldFail && !test.didFail) { + else if (!shouldFail && test.didFail) { fail("Neg test should have failed, but did not") }