Skip to content

Commit 6f50082

Browse files
committed
Disable @mainactor test functions due to SILGen crash.
1 parent 33f65a5 commit 6f50082

File tree

1 file changed

+6
-5
lines changed
  • Tests/Functional/Asynchronous/Expectations

1 file changed

+6
-5
lines changed

Tests/Functional/Asynchronous/Expectations/main.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -636,17 +636,18 @@ class ExpectationsTestCase: XCTestCase {
636636

637637
// waitForExpectations() + @MainActor
638638
("test_waitForExpectationsAsync", asyncTest(test_waitForExpectationsAsync)),
639-
("test_waitForExpectationsFromMainActor", asyncTest(test_waitForExpectationsFromMainActor)),
640-
("test_waitForExpectationsFromMainActor_async", asyncTest(test_waitForExpectationsFromMainActor_async)),
639+
// Disabled due to a SILGen crash: <rdar://111340003>
640+
// ("test_waitForExpectationsFromMainActor", asyncTest(test_waitForExpectationsFromMainActor)),
641+
// ("test_waitForExpectationsFromMainActor_async", asyncTest(test_waitForExpectationsFromMainActor_async)),
641642
]
642643
}()
643644
}
644645
// CHECK: Test Suite 'ExpectationsTestCase' failed at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
645-
// CHECK: \t Executed 38 tests, with 16 failures \(2 unexpected\) in \d+\.\d+ \(\d+\.\d+\) seconds
646+
// CHECK: \t Executed 36 tests, with 16 failures \(2 unexpected\) in \d+\.\d+ \(\d+\.\d+\) seconds
646647

647648
XCTMain([testCase(ExpectationsTestCase.allTests)])
648649

649650
// CHECK: Test Suite '.*\.xctest' failed at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
650-
// CHECK: \t Executed 38 tests, with 16 failures \(2 unexpected\) in \d+\.\d+ \(\d+\.\d+\) seconds
651+
// CHECK: \t Executed 36 tests, with 16 failures \(2 unexpected\) in \d+\.\d+ \(\d+\.\d+\) seconds
651652
// CHECK: Test Suite 'All tests' failed at \d+-\d+-\d+ \d+:\d+:\d+\.\d+
652-
// CHECK: \t Executed 38 tests, with 16 failures \(2 unexpected\) in \d+\.\d+ \(\d+\.\d+\) seconds
653+
// CHECK: \t Executed 36 tests, with 16 failures \(2 unexpected\) in \d+\.\d+ \(\d+\.\d+\) seconds

0 commit comments

Comments
 (0)