]> granicus.if.org Git - clang/commitdiff
[CUDA] Fix faulty test from rL288448
authorJason Henline <jhen@google.com>
Fri, 2 Dec 2016 02:04:43 +0000 (02:04 +0000)
committerJason Henline <jhen@google.com>
Fri, 2 Dec 2016 02:04:43 +0000 (02:04 +0000)
Summary:
The test introduced by rL288448 is currently failing because
unimportant but unexpected errors appear as output from a test compile
line. This patch looks for a more specific error message, in order to
avoid false positives.

Reviewers: jlebar

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D27328

Switch to more specific error

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288453 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/cuda-no-sanitizers.cu

index 4c01bbdab0f6da9063841636df5746558187a3f3..a466b42d8c42dbc6a510c5a89b21947e73140f67 100644 (file)
@@ -6,7 +6,7 @@
 // RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=sm_20 -fsanitize=address %s 2>&1 | \
 // RUN:   FileCheck %s
 
-// CHECK-NOT: error:
+// CHECK-NOT: error: unsupported option '-fsanitize=address'
 // CHECK-DAG: "-fcuda-is-device"
 // CHECK-NOT: "-fsanitize=address"
 // CHECK-DAG: "-triple" "x86_64--linux-gnu"