@@ -416,14 +416,13 @@ class BuildCommandTestCases: CommandsBuildProviderTestCase {
416
416
}
417
417
418
418
func testBuildCompleteMessage( ) async throws {
419
- try XCTSkipIf ( true , " This test fails to match the 'Compiling' regex; rdar://101815761 " )
420
-
421
419
try await fixture ( name: " DependencyResolution/Internal/Simple " ) { fixturePath in
422
420
do {
423
421
let result = try await execute ( packagePath: fixturePath)
424
- XCTAssertMatch ( result. stdout, . regex( " \\ [[1-9][0-9]* \\ /[1-9][0-9]* \\ ] Compiling " ) )
422
+ // This test fails to match the 'Compiling' regex; rdar://101815761
423
+ // XCTAssertMatch(result.stdout, .regex("\\[[1-9][0-9]*\\/[1-9][0-9]*\\] Compiling"))
425
424
let lines = result. stdout. split ( whereSeparator: { $0. isNewline } )
426
- XCTAssertMatch ( String ( lines. last!) , . regex( " Build complete! \\ ([0-9]* \\ .[0-9]*s \\ ) " ) )
425
+ XCTAssertMatch ( String ( lines. last!) , . regex( " Build complete! \\ ([0-9]* \\ .[0-9]* \\ s*s(econds)? \\ ) " ) )
427
426
}
428
427
429
428
do {
@@ -434,9 +433,10 @@ class BuildCommandTestCases: CommandsBuildProviderTestCase {
434
433
do {
435
434
// test third time, to make sure message is presented even when nothing to build (cached)
436
435
let result = try await execute ( packagePath: fixturePath)
437
- XCTAssertNoMatch ( result. stdout, . regex( " \\ [[1-9][0-9]* \\ /[1-9][0-9]* \\ ] Compiling " ) )
436
+ // This test fails to match the 'Compiling' regex; rdar://101815761
437
+ // XCTAssertNoMatch(result.stdout, .regex("\\[[1-9][0-9]*\\/[1-9][0-9]*\\] Compiling"))
438
438
let lines = result. stdout. split ( whereSeparator: { $0. isNewline } )
439
- XCTAssertMatch ( String ( lines. last!) , . regex( " Build complete! \\ ([0-9]* \\ .[0-9]*s \\ ) " ) )
439
+ XCTAssertMatch ( String ( lines. last!) , . regex( " Build complete! \\ ([0-9]* \\ .[0-9]* \\ s*s(econds)? \\ ) " ) )
440
440
}
441
441
}
442
442
}
@@ -848,6 +848,10 @@ class BuildCommandXcodeTests: BuildCommandTestCases {
848
848
override func testGetTaskAllowEntitlement( ) async throws {
849
849
try XCTSkip ( " Test not implemented for xcode build system. " )
850
850
}
851
+
852
+ override func testBuildCompleteMessage( ) async throws {
853
+ try XCTSkip ( " Test not implemented for xcode build system. " )
854
+ }
851
855
}
852
856
#endif
853
857
0 commit comments