Skip to content

Commit fb1d1f8

Browse files
Merge pull request #6120 from adrian-prantl/unxpass-regex
Un-XPASS regex REPL test.
2 parents 91bcf92 + 4cb1018 commit fb1d1f8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

lldb/test/Shell/SwiftREPL/Regex.test

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Test that we can use Swift's regex functionalities on the REPL.
22
// REQUIRES: swift
3-
// XFAIL: system-darwin
4-
// This is expected to fail on macOS for now because Regex has an availability of 9999 (for now).
53

64
// RUN: %lldb --repl < %s | FileCheck %s
75

@@ -12,3 +10,12 @@ let regex = /Order from <(.*)>, type: (.*), count in dozen: ([0-9]+)/
1210
import RegexBuilder
1311
let dslRegex = Regex { .digit }
1412
// CHECK: _StringProcessing.Regex<Substring> =
13+
14+
// We should only see this output once, regardless of availability.
15+
// CHECK-NOT: _StringProcessing
16+
if #unavailable(macOS 13, iOS 16, watchOS 9, tvOS 16) {
17+
// Work around the fact that the REPL doesn't print results for
18+
// variables declared inside of a conditional.
19+
print("_StringProcessing.Regex<(Substring, Substring, Substring, Substring)> =")
20+
print("_StringProcessing.Regex<Substring> = ")
21+
}

0 commit comments

Comments
 (0)