Skip to content

Commit f533e1b

Browse files
authored
Generalize test to handle the compiler's new diagnostic printing style (#7368)
1 parent 31bc808 commit f533e1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/FunctionalTests/MiscellaneousTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ class MiscellaneousTestCase: XCTestCase {
8989
return XCTFail("failed in an unexpected manner: \(error)")
9090
}
9191
XCTAssertMatch(error.stdout + error.stderr, .contains("Compiling CompileFails Foo.swift"))
92-
XCTAssertMatch(error.stdout + error.stderr, .regex("error: .*\n.*compile_failure"))
92+
XCTAssertMatch(error.stdout + error.stderr, .regex(".*compile_failure.*"))
93+
XCTAssertMatch(error.stdout + error.stderr, .regex(".*error:.*"))
9394
}
9495
}
9596
}

0 commit comments

Comments
 (0)