mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
If someone has configured their build to add some vendor macro, for example, the vendor macro will appear in `customConditions`, which will make the test fail. Modify the test slightly to check for `customConditions` containing `"SOMETHING"`, instead of only being `["SOMETHING"]` and nothing else. This should still allow the test to pass in Swift CI, but allows vendor macros to work too.
11 lines
290 B
Swift
11 lines
290 B
Swift
// RUN: %target-swift-frontend -print-static-build-config -DSOMETHING | %FileCheck %s
|
|
// REQUIRES: swift_swift_parser
|
|
|
|
// CHECK: "attributes":
|
|
// CHECK-SAME: "escaping"
|
|
|
|
// CHECK-SAME: "customConditions":[{{.*"SOMETHING"[^]]*\]}}
|
|
|
|
// CHECK-SAME: "features":
|
|
// CHECK-SAME: "AttachedMacros"
|