Skip to content

Commit 4c3471a

Browse files
authored
[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.
1 parent 199240b commit 4c3471a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Frontend/print-static-build-config.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// CHECK: "attributes":
55
// CHECK-SAME: "escaping"
66

7-
// CHECK-SAME: "customConditions":["SOMETHING"]
7+
// CHECK-SAME: "customConditions":[{{.*"SOMETHING"[^]]*\]}}
88

99
// CHECK-SAME: "features":
1010
// CHECK-SAME: "AttachedMacros"

0 commit comments

Comments
 (0)