mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[test] Allow custom conditions for non-standard compilations (#84632)
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.
This commit is contained in:
committed by
GitHub
parent
199240b3fe
commit
4c3471aed5
@@ -4,7 +4,7 @@
|
||||
// CHECK: "attributes":
|
||||
// CHECK-SAME: "escaping"
|
||||
|
||||
// CHECK-SAME: "customConditions":["SOMETHING"]
|
||||
// CHECK-SAME: "customConditions":[{{.*"SOMETHING"[^]]*\]}}
|
||||
|
||||
// CHECK-SAME: "features":
|
||||
// CHECK-SAME: "AttachedMacros"
|
||||
|
||||
Reference in New Issue
Block a user