Skip to content

swift build --build-tests doesn't work with --enable-test-discovery flag #7389

@MaxDesiatov

Description

@MaxDesiatov

It appears the lack of tests hurt us here: this pull broke swift build --build-tests registering the --enable-test-discovery flag also. My Android CI builds swift-numerics trunk daily with the latest Swift trunk snapshot builds and those flags: it now errors with the March 1 snapshot.

I can reproduce the crash on linux x86_64 with the following commands, which work with the last Feb. 29 trunk snapshot before this pull:

> ../swift-DEVELOPMENT-SNAPSHOT-2024-03-01-a-ubi9/usr/bin/swift build --build-tests --enable-test-discovery
> .build/x86_64-unknown-linux-gnu/debug/swift-numericsPackageTests.xctest

Originally posted by @finagolfin in #7377 (comment)

Metadata

Metadata

Assignees

Labels

bugneeds testsThis change needs test coverageswift buildChanges impacting `swift build`

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions