Skip to content

Commit

Permalink
[analyzer] Fix the 'analyzer-enabled-checkers.c' test on non-linux ma…
Browse files Browse the repository at this point in the history
…chines.

'-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.

llvm-svn: 371781
  • Loading branch information
haoNoQ committed Sep 12, 2019
1 parent a42070a commit 851e95c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clang/test/Analysis/analyzer-enabled-checkers.c
@@ -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 \
Expand Down

0 comments on commit 851e95c

Please sign in to comment.