swiftlang/swift-package-manager

dynamically generate flag expectations in tests

Open

#5474 opened on May 7, 2022

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

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