Skip to content

Filtering for specific tests crashes on Linux - #355

Open
josephnoir wants to merge 5 commits into
apple:mainfrom
josephnoir:test-quic-connection
Open

josephnoir wants to merge 5 commits into
apple:mainfrom
josephnoir:test-quic-connection

Conversation

@josephnoir

Copy link
Copy Markdown
Contributor

Motivation

Filtering tests shouldn't crash. The reason seems to be that some tests initialize a QUICConnection that will not be cleaned up in all cases. Specifically, XCTest (on Linux) instantiates test cases to list them, in this case the state will not be cleaned up and the connection's ProtocolEventManager will not be unregisterd, which traps with a precondition failure in deinit.

Modifications

Initialize QUICConnection in setUp function.

Result

Filtering for tests does no longer crash on Linux.

Motivation:

Filtering tests shouldn't crash. The reasons seems to be that some tests
initialize a QUICConnection that will not be cleaned up in all cases.
Specifically, XCTest instantiates test cases to list them, in this case
the state will not be cleaned up and the ProtocolEventManager will not
be unregisterd, which runs into a precondition failure.

Modifications:

Initialize QUICConnection in setUp function.

Result:

Filtering for tests does no longer crash on Linux.
@josephnoir josephnoir added the semver/none No version bump required. label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants