Skip to content

Commit 3b7322f

Browse files
Merge pull request #5199 from milessabin/topic/flip-message
Flip messages for neg test pass/fail
2 parents f86c6ed + daa6891 commit 3b7322f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,10 +984,10 @@ trait ParallelTesting extends RunnerOrchestration { self =>
984984

985985
cleanup()
986986

987-
if (!shouldFail && test.didFail) {
987+
if (shouldFail && !test.didFail) {
988988
fail(s"Neg test shouldn't have failed, but did. Reasons:\n${ reasonsForFailure(test) }")
989989
}
990-
else if (shouldFail && !test.didFail) {
990+
else if (!shouldFail && test.didFail) {
991991
fail("Neg test should have failed, but did not")
992992
}
993993

0 commit comments

Comments
 (0)