Description
When adding an exit test to a test suite, that test hangs indefinitely when run on Ubuntu 20.04. The test runs successfully and completes in ~0.3s on Ubuntu 22.04 and on all of the macOS versions that I've tried.
Reproduction
- Download the latest nightly-focal swift docker image
- Create a project that includes the following unit test
@Test func testExits() {
await #expect(processExitsWith: .failure) {
fatalError("I crashed")
}
}
- Build and run the test (
swift test)
- Notice that the test hangs indefinitely after
◇ Test testExits() started.
Expected behavior
Exit tests complete successfully on all supported platforms
Environment
↳ Testing Library Version: 6.3-dev (d6111205ce07f17)
↳ Target Platform: aarch64-unknown-linux-gnu
Swift version 6.2-dev (LLVM 5e7837820b1c886, Swift d5ef256b402bff7)
Target: aarch64-unknown-linux-gnu
Build config: +assertions
Linux nightly-focal 6.1.68 #1 SMP Fri Nov 22 18:05:17 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
Additional information
This is blocking Foundation from adopting exit tests as swift toolchain CI runs on Ubuntu 20.04
Description
When adding an exit test to a test suite, that test hangs indefinitely when run on Ubuntu 20.04. The test runs successfully and completes in ~0.3s on Ubuntu 22.04 and on all of the macOS versions that I've tried.
Reproduction
swift test)◇ Test testExits() started.Expected behavior
Exit tests complete successfully on all supported platforms
Environment
Additional information
This is blocking Foundation from adopting exit tests as swift toolchain CI runs on Ubuntu 20.04