Skip to content

Commit fe162be

Browse files
committed
Make test more lenient for custom clang version strings
The version string can be anything, don't restrict it to digits and dots. It's derived from the resource dir, so just check for that.
1 parent 322ff42 commit fe162be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/test/Driver/darwin-embedded-search-paths.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@
3333
// the cc1 arguments.
3434

3535
// CC1: "-cc1"
36+
// CC1: "-resource-dir" "[[RESOURCE_DIR:[^"]*]]"
3637
// NO-CXX-NOT: "-internal-isystem" "{{.*}}/include/c++/v1"
3738
// CXX-SAME: "-internal-isystem" "{{.*}}/include/c++/v1"
3839
// ULI-SAME: "-internal-isystem" "[[SDKROOT]]/usr/local/include"
3940
// EULI-SAME: "-isystem" "[[SDKROOT]]/embedded/usr/local/include"
40-
// CI-SAME: "-internal-isystem" "{{.*}}/clang/{{[[:digit:].]*}}/include"
41+
// CI-SAME: "-internal-isystem" "[[RESOURCE_DIR]]/include"
4142
// UI-SAME: "-internal-externc-isystem" "[[SDKROOT]]/usr/include"
4243
// EUI-SAME: "-internal-externc-isystem" "[[SDKROOT]]/embedded/usr/include"
4344
// NO-FW-NOT: "-internal-iframework"

0 commit comments

Comments
 (0)