Skip to content

Exit tests hang indefinitely on Ubuntu 20.04 #1140

@jmschonfeld

Description

@jmschonfeld

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

  1. Download the latest nightly-focal swift docker image
  2. Create a project that includes the following unit test
@Test func testExits() {
    await #expect(processExitsWith: .failure) {
        fatalError("I crashed")
    }
}
  1. Build and run the test (swift test)
  2. 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

Metadata

Metadata

Assignees

Labels

bug🪲 Something isn't workingexit-tests☠️ Work related to exit testslinux🐧 Linux support (all distros)triagedThis issue has undergone initial triage

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions