[test] Re-enable forward-slash-regex-skipping-allowed.swift

Adjust to account for output differences between
asserts and non-asserts builds.

rdar://95806819
This commit is contained in:
Hamish Knight
2022-06-24 13:49:42 +01:00
parent 2037006b1e
commit 6c091a5dc2

View File

@@ -5,12 +5,13 @@
// RUN: %FileCheck -input-file %t/stats.csv %s
// REQUIRES: swift_in_compiler
// REQUIRES: rdar95806819
// Make sure we can skip in all of the below cases.
// We don't appear to output a stats entry when it is 0.
// CHECK-NOT: {{"Parse.NumFunctionsParsed"}}
// The printing implementation differs in asserts and no-asserts builds, it will
// either print `"Parse.NumFunctionsParsed" 0` or not print it at all. Make sure
// we don't output any non-zero value.
// CHECK-NOT: {{"Parse.NumFunctionsParsed" [^0]}}
// Balanced `{}`, so okay.
func a() { / {}/ }