Skip to content

Commit 7cb5bc9

Browse files
authored
Disable a couple of tests on older OSes that are reliant on Regex. (#560)
The tests in question use `Regex`, so they won't run on older Darwin versions. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent ebb4cc1 commit 7cb5bc9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/TestingTests/SwiftPMTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ struct SwiftPMTests {
8181
}
8282

8383
@Test("--filter or --skip argument with bad regex")
84+
@available(_regexAPI, *)
8485
func badArguments() throws {
8586
#expect(throws: (any Error).self) {
8687
_ = try configurationForEntryPoint(withArguments: ["PATH", "--filter", "("])
@@ -91,6 +92,7 @@ struct SwiftPMTests {
9192
}
9293

9394
@Test("--filter with no matches")
95+
@available(_regexAPI, *)
9496
func filterWithNoMatches() async {
9597
var args = __CommandLineArguments_v0()
9698
args.filter = ["NOTHING_MATCHES_THIS_TEST_NAME_HOPEFULLY"]

0 commit comments

Comments
 (0)