r371781 - [analyzer] Fix the 'analyzer-enabled-checkers.c' test on non-linux machines.
Artem Dergachev via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 12 15:11:16 PDT 2019
Author: dergachev
Date: Thu Sep 12 15:11:15 2019
New Revision: 371781
URL: http://llvm.org/viewvc/llvm-project?rev=371781&view=rev
Log:
[analyzer] Fix the 'analyzer-enabled-checkers.c' test on non-linux machines.
'-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.
Modified:
cfe/trunk/test/Analysis/analyzer-enabled-checkers.c
Modified: cfe/trunk/test/Analysis/analyzer-enabled-checkers.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/analyzer-enabled-checkers.c?rev=371781&r1=371780&r2=371781&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/analyzer-enabled-checkers.c (original)
+++ cfe/trunk/test/Analysis/analyzer-enabled-checkers.c Thu Sep 12 15:11:15 2019
@@ -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 \
More information about the cfe-commits
mailing list