Skip to content

Commit e9ad784

Browse files
committed
[ASTGen/Tests] Add -disable-availability-checking to regex test cases
Regex is not always available for the default OS versions. For example error: 'Regex' is only available in watchOS 9.0 or newer But the current watchOS deployment target for testing is `-target x86_64-apple-watchos6.0-simulator`
1 parent b5a85ed commit e9ad784

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/ASTGen/regex.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-swift-frontend %s -dump-parse -enable-bare-slash-regex -enable-experimental-feature ParserASTGen > %t/astgen.ast.raw
3-
// RUN: %target-swift-frontend %s -dump-parse -enable-bare-slash-regex > %t/cpp-parser.ast.raw
2+
// RUN: %target-swift-frontend %s -dump-parse -enable-bare-slash-regex -disable-availability-checking -enable-experimental-feature ParserASTGen > %t/astgen.ast.raw
3+
// RUN: %target-swift-frontend %s -dump-parse -enable-bare-slash-regex -disable-availability-checking > %t/cpp-parser.ast.raw
44

55
// Filter out any addresses in the dump, since they can differ.
66
// RUN: sed -E 's#0x[0-9a-fA-F]+##g' %t/cpp-parser.ast.raw > %t/cpp-parser.ast
77
// RUN: sed -E 's#0x[0-9a-fA-F]+##g' %t/astgen.ast.raw > %t/astgen.ast
88

99
// RUN: %diff -u %t/astgen.ast %t/cpp-parser.ast
1010

11-
// RUN: %target-typecheck-verify-swift -enable-experimental-feature ParserASTGen -enable-bare-slash-regex
11+
// RUN: %target-typecheck-verify-swift -enable-experimental-feature ParserASTGen -enable-bare-slash-regex -disable-availability-checking
1212

1313
// REQUIRES: swift_swift_parser
1414

0 commit comments

Comments
 (0)