Skip to content

Commit 6f31973

Browse files
hamishknightshahmishal
authored andcommitted
[test] Re-enable forward-slash-regex-skipping-allowed.swift
Adjust to account for output differences between asserts and non-asserts builds. rdar://95806819 (cherry picked from commit 6c091a5)
1 parent 018e26e commit 6f31973

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/StringProcessing/Parse/forward-slash-regex-skipping-allowed.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88

99
// Make sure we can skip in all of the below cases.
1010

11-
// We don't appear to output a stats entry when it is 0.
12-
// CHECK-NOT: {{"Parse.NumFunctionsParsed"}}
11+
// The printing implementation differs in asserts and no-asserts builds, it will
12+
// either print `"Parse.NumFunctionsParsed" 0` or not print it at all. Make sure
13+
// we don't output any non-zero value.
14+
// CHECK-NOT: {{"Parse.NumFunctionsParsed" [^0]}}
1315

1416
// Balanced `{}`, so okay.
1517
func a() { / {}/ }

0 commit comments

Comments
 (0)