swiftlang/swift-package-manager

dynamically generate flag expectations in tests

Open

#5,474 opened on May 7, 2022

View on GitHub
 (6 comments) (0 reactions) (0 assignees)Swift (1,462 forks)batch import
enhancementgood first issue

Repository metrics

Stars
 (10,145 stars)
PR merge metrics
 (Avg merge 8d 1h) (76 merged PRs in 30d)

Description

Many of the tests are currently statically generating the flags for expectations in BuildPlanTests.swift based upon #if os which changes behaviour based on the OS rather than the target. This can cause subtle bugs to arise. We should dynamically compute the arguments.

Contributor guide