[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:
Daniel Rodríguez Troitiño
2025-10-02 08:24:12 -07:00
committed by GitHub
parent 199240b3fe
commit 4c3471aed5

View File

@@ -4,7 +4,7 @@
// CHECK: "attributes":
// CHECK-SAME: "escaping"
// CHECK-SAME: "customConditions":["SOMETHING"]
// CHECK-SAME: "customConditions":[{{.*"SOMETHING"[^]]*\]}}
// CHECK-SAME: "features":
// CHECK-SAME: "AttachedMacros"