From: Jason Henline Date: Fri, 2 Dec 2016 02:04:43 +0000 (+0000) Subject: [CUDA] Fix faulty test from rL288448 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ca3a0ca80293baa3af205db69a8eeee8dd736be;p=clang [CUDA] Fix faulty test from rL288448 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 --- diff --git a/test/Driver/cuda-no-sanitizers.cu b/test/Driver/cuda-no-sanitizers.cu index 4c01bbdab0..a466b42d8c 100644 --- a/test/Driver/cuda-no-sanitizers.cu +++ b/test/Driver/cuda-no-sanitizers.cu @@ -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"