@@ -3219,6 +3219,8 @@ final class BuildPlanTests: XCTestCase {
3219
3219
. init( tool: . swift, kind: . define( " RLINUX " ) , condition: . init( platformNames: [ " linux " ] , config: " release " ) ) ,
3220
3220
. init( tool: . swift, kind: . define( " DMACOS " ) , condition: . init( platformNames: [ " macos " ] , config: " debug " ) ) ,
3221
3221
. init( tool: . swift, kind: . unsafeFlags( [ " -Isfoo " , " -L " , " sbar " ] ) ) ,
3222
+ . init( tool: . swift, kind: . upcomingFeatures( [ " BestFeature " ] ) ) ,
3223
+ . init( tool: . swift, kind: . upcomingFeatures( [ " WorstFeature " ] ) , condition: . init( platformNames: [ " macos " ] , config: " debug " ) )
3222
3224
]
3223
3225
) ,
3224
3226
try TargetDescription (
@@ -3283,7 +3285,7 @@ final class BuildPlanTests: XCTestCase {
3283
3285
XCTAssertMatch ( cbar, [ . anySequence, " -DCCC=2 " , " -I \( A . appending ( components: " Sources " , " cbar " , " Sources " , " headers " ) ) " , " -I \( A . appending ( components: " Sources " , " cbar " , " Sources " , " cppheaders " ) ) " , " -Icfoo " , " -L " , " cbar " , " -Icxxfoo " , " -L " , " cxxbar " , . end] )
3284
3286
3285
3287
let bar = try result. target ( for: " bar " ) . swiftTarget ( ) . compileArguments ( )
3286
- XCTAssertMatch ( bar, [ . anySequence, " -DLINUX " , " -Isfoo " , " -L " , " sbar " , . end] )
3288
+ XCTAssertMatch ( bar, [ . anySequence, " -DLINUX " , " -Isfoo " , " -L " , " sbar " , " -enable-future-feature " , " BestFeature " , . end] )
3287
3289
3288
3290
let exe = try result. target ( for: " exe " ) . swiftTarget ( ) . compileArguments ( )
3289
3291
XCTAssertMatch ( exe, [ . anySequence, " -DFOO " , . end] )
@@ -3299,7 +3301,7 @@ final class BuildPlanTests: XCTestCase {
3299
3301
XCTAssertMatch ( cbar, [ . anySequence, " -DCCC=2 " , " -I \( A . appending ( components: " Sources " , " cbar " , " Sources " , " headers " ) ) " , " -I \( A . appending ( components: " Sources " , " cbar " , " Sources " , " cppheaders " ) ) " , " -Icfoo " , " -L " , " cbar " , " -Icxxfoo " , " -L " , " cxxbar " , . end] )
3300
3302
3301
3303
let bar = try result. target ( for: " bar " ) . swiftTarget ( ) . compileArguments ( )
3302
- XCTAssertMatch ( bar, [ . anySequence, " -DDMACOS " , " -Isfoo " , " -L " , " sbar " , . end] )
3304
+ XCTAssertMatch ( bar, [ . anySequence, " -DDMACOS " , " -Isfoo " , " -L " , " sbar " , " -enable-future-feature " , " BestFeature " , " -enable-future-feature " , " WorstFeature " , . end] )
3303
3305
3304
3306
let exe = try result. target ( for: " exe " ) . swiftTarget ( ) . compileArguments ( )
3305
3307
XCTAssertMatch ( exe, [ . anySequence, " -DFOO " , . end] )
0 commit comments