]> granicus.if.org Git - clang/commitdiff
[analyzer] Fix the 'analyzer-enabled-checkers.c' test on non-linux machines.
authorArtem Dergachev <artem.dergachev@gmail.com>
Thu, 12 Sep 2019 22:11:15 +0000 (22:11 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Thu, 12 Sep 2019 22:11:15 +0000 (22:11 +0000)
'-Xclang -triple' doesn't seem to override the default target triple
as reliably as '--target'. This leads to test failing due to
platform-specific checks getting unexpectedly enabled.

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

test/Analysis/analyzer-enabled-checkers.c

index 0618a68978190cf21843527e53ae9d7e904cea56..ba850ec6da48f57c1419b9e4cdafcb62c35cb647 100644 (file)
@@ -1,5 +1,4 @@
-// RUN: %clang --analyze %s \
-// RUN:   -Xclang -triple -Xclang x86_64-pc-linux-gnu \
+// RUN: %clang --analyze %s --target=x86_64-pc-linux-gnu \
 // RUN:   -Xclang -analyzer-list-enabled-checkers \
 // RUN:   -Xclang -analyzer-display-progress \
 // RUN:   2>&1 | FileCheck %s --implicit-check-not=ANALYZE \