diff --git a/Tests/FunctionalTests/MiscellaneousTests.swift b/Tests/FunctionalTests/MiscellaneousTests.swift index fb3f5033ed1..b5e5dc3e28f 100644 --- a/Tests/FunctionalTests/MiscellaneousTests.swift +++ b/Tests/FunctionalTests/MiscellaneousTests.swift @@ -89,7 +89,8 @@ class MiscellaneousTestCase: XCTestCase { return XCTFail("failed in an unexpected manner: \(error)") } XCTAssertMatch(error.stdout + error.stderr, .contains("Compiling CompileFails Foo.swift")) - XCTAssertMatch(error.stdout + error.stderr, .regex("error: .*\n.*compile_failure")) + XCTAssertMatch(error.stdout + error.stderr, .regex(".*compile_failure.*")) + XCTAssertMatch(error.stdout + error.stderr, .regex(".*error:.*")) } } }