Skip to content

Adopt #if objectFormat() #1370

@grynspan

Description

@grynspan

Adopt #if objectFormat() in _TestDiscovery and in the @Test/@Suite/#expect(processExitsWith:) macro implementations.

We'll need to wait a release (presumably until 6.4) to adopt because we can't write:

#if objectFormat(ELF)
// ELF implementation
#else ...

And have it compile on 6.2 toolchains. Using os() is sufficient for now.

See: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0492-section-control.md

Metadata

Metadata

Assignees

Labels

discovery🔎 test content discoveryenhancementNew feature or requesttriagedThis issue has undergone initial triage

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions