diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-30 00:21:41 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-30 00:21:41 +0000 |
commit | e87edbd0561960a14d5d9b927dd47d4e4bf9196c (patch) | |
tree | f92a8bc95307fd68f59a01afc9f00800f268ad0b | |
parent | d09436c724baa1b11804d60e286ec0b9124489ee (diff) |
clang/test/Driver/asan-ld.c: Try not to mismatch temporary file, like "tmpkcfdld".
If we had the regular expression "\b" in FileCheck like Perl...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173861 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Driver/asan-ld.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/Driver/asan-ld.c b/test/Driver/asan-ld.c index cf2b695aa0..96155713f6 100644 --- a/test/Driver/asan-ld.c +++ b/test/Driver/asan-ld.c @@ -5,7 +5,7 @@ // RUN: --sysroot=%S/Inputs/basic_linux_tree \ // RUN: | FileCheck --check-prefix=CHECK-LINUX %s // -// CHECK-LINUX: "{{.*}}ld{{(.exe)?}}" +// CHECK-LINUX: "{{.*[^-.0-9A-Z_a-z]}}ld{{(.exe)?}}" // CHECK-LINUX-NOT: "-lc" // CHECK-LINUX: libclang_rt.asan-i386.a" // CHECK-LINUX: "-lpthread" @@ -17,7 +17,7 @@ // RUN: --sysroot=%S/Inputs/basic_linux_tree \ // RUN: | FileCheck --check-prefix=CHECK-LINUX-CXX %s // -// CHECK-LINUX-CXX: "{{.*}}ld{{(.exe)?}}" +// CHECK-LINUX-CXX: "{{.*[^-.0-9A-Z_a-z]}}ld{{(.exe)?}}" // CHECK-LINUX-CXX-NOT: "-lc" // CHECK-LINUX-CXX: "-whole-archive" "{{.*}}libclang_rt.asan-i386.a" "-no-whole-archive" // CHECK-LINUX-CXX: "-lpthread" @@ -30,7 +30,7 @@ // RUN: -lstdc++ -static 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-LINUX-CXX-STATIC %s // -// CHECK-LINUX-CXX-STATIC: "{{.*}}ld{{(.exe)?}}" +// CHECK-LINUX-CXX-STATIC: "{{.*[^-.0-9A-Z_a-z]}}ld{{(.exe)?}}" // CHECK-LINUX-CXX-STATIC-NOT: stdc++ // CHECK-LINUX-CXX-STATIC: "-whole-archive" "{{.*}}libclang_rt.asan-i386.a" "-no-whole-archive" // CHECK-LINUX-CXX-STATIC: stdc++ @@ -40,7 +40,7 @@ // RUN: --sysroot=%S/Inputs/basic_android_tree/sysroot \ // RUN: | FileCheck --check-prefix=CHECK-ANDROID %s // -// CHECK-ANDROID: "{{.*}}ld{{(.exe)?}}" +// CHECK-ANDROID: "{{.*[^-.0-9A-Z_a-z]}}ld{{(.exe)?}}" // CHECK-ANDROID-NOT: "-lc" // CHECK-ANDROID: libclang_rt.asan-arm-android.so" // CHECK-ANDROID-NOT: "-lpthread" @@ -51,7 +51,7 @@ // RUN: -shared \ // RUN: | FileCheck --check-prefix=CHECK-ANDROID-SHARED %s // -// CHECK-ANDROID-SHARED: "{{.*}}ld{{(.exe)?}}" +// CHECK-ANDROID-SHARED: "{{.*[^-.0-9A-Z_a-z]}}ld{{(.exe)?}}" // CHECK-ANDROID-SHARED-NOT: "-lc" // CHECK-ANDROID-SHARED: libclang_rt.asan-arm-android.so" // CHECK-ANDROID-SHARED-NOT: "-lpthread" |