From 4b05fc248b0068e203f27bea034020f137a6de2c Mon Sep 17 00:00:00 2001 From: Artem Dergachev Date: Tue, 4 Feb 2020 00:11:56 +0300 Subject: [PATCH] [analyzer] Suppress linker invocation in scan-build tests. This should fix PS4 buildbots. --- clang/test/Analysis/scan-build/exclude_directories.test | 6 +++--- clang/test/Analysis/scan-build/html_output.test | 2 +- clang/test/Analysis/scan-build/plist_html_output.test | 2 +- clang/test/Analysis/scan-build/plist_output.test | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/clang/test/Analysis/scan-build/exclude_directories.test b/clang/test/Analysis/scan-build/exclude_directories.test index b73d627..56acbd1 100644 --- a/clang/test/Analysis/scan-build/exclude_directories.test +++ b/clang/test/Analysis/scan-build/exclude_directories.test @@ -5,7 +5,7 @@ REQUIRES: shell UNSUPPORTED: system-windows RUN: rm -rf %t.output_dir && mkdir %t.output_dir -RUN: %scan-build -o %t.output_dir %clang \ +RUN: %scan-build -o %t.output_dir %clang -c \ RUN: %S/Inputs/multidirectory_project/directory1/file1.c \ RUN: %S/Inputs/multidirectory_project/directory2/file2.c \ RUN: | FileCheck %s -check-prefix CHECK-NO-EXCLUDE @@ -21,7 +21,7 @@ CHECK-NO-EXCLUDE: scan-build: 2 bugs found. // Only one issue should be found when directory1 is excluded. RUN: rm -rf %t.output_dir && mkdir %t.output_dir -RUN: %scan-build -o %t.output_dir --exclude directory1 %clang \ +RUN: %scan-build -o %t.output_dir --exclude directory1 %clang -c \ RUN: %S/Inputs/multidirectory_project/directory1/file1.c \ RUN: %S/Inputs/multidirectory_project/directory2/file2.c \ RUN: | FileCheck %s -check-prefix CHECK-EXCLUDE1 @@ -31,7 +31,7 @@ CHECK-EXCLUDE1: scan-build: 1 bug found. // When both directories are excluded, no issues should be reported. RUN: rm -rf %t.output_dir && mkdir %t.output_dir -RUN: %scan-build -o %t.output_dir --exclude directory1 --exclude directory2 %clang \ +RUN: %scan-build -o %t.output_dir --exclude directory1 --exclude directory2 %clang -c \ RUN: %S/Inputs/multidirectory_project/directory1/file1.c \ RUN: %S/Inputs/multidirectory_project/directory2/file2.c \ RUN: | FileCheck %s -check-prefix CHECK-EXCLUDE-BOTH diff --git a/clang/test/Analysis/scan-build/html_output.test b/clang/test/Analysis/scan-build/html_output.test index 1f56d17..b3b8aa0 100644 --- a/clang/test/Analysis/scan-build/html_output.test +++ b/clang/test/Analysis/scan-build/html_output.test @@ -5,7 +5,7 @@ REQUIRES: shell UNSUPPORTED: system-windows RUN: rm -rf %t.output_dir && mkdir %t.output_dir -RUN: %scan-build -o %t.output_dir %clang %S/Inputs/single_null_dereference.c \ +RUN: %scan-build -o %t.output_dir %clang -c %S/Inputs/single_null_dereference.c \ RUN: | FileCheck %s -check-prefix CHECK-STDOUT // Test html output diff --git a/clang/test/Analysis/scan-build/plist_html_output.test b/clang/test/Analysis/scan-build/plist_html_output.test index 8af35e6..4bd7c56 100644 --- a/clang/test/Analysis/scan-build/plist_html_output.test +++ b/clang/test/Analysis/scan-build/plist_html_output.test @@ -5,7 +5,7 @@ REQUIRES: shell UNSUPPORTED: system-windows RUN: rm -rf %t.output_dir && mkdir %t.output_dir -RUN: %scan-build -plist-html -o %t.output_dir %clang %S/Inputs/single_null_dereference.c \ +RUN: %scan-build -plist-html -o %t.output_dir %clang -c %S/Inputs/single_null_dereference.c \ RUN: | FileCheck %s -check-prefix CHECK-STDOUT // Test combined plist and html output with -plist-html diff --git a/clang/test/Analysis/scan-build/plist_output.test b/clang/test/Analysis/scan-build/plist_output.test index 1a921a4..30f90a2 100644 --- a/clang/test/Analysis/scan-build/plist_output.test +++ b/clang/test/Analysis/scan-build/plist_output.test @@ -5,7 +5,7 @@ REQUIRES: shell UNSUPPORTED: system-windows RUN: rm -rf %t.output_dir && mkdir %t.output_dir -RUN: %scan-build -plist -o %t.output_dir %clang %S/Inputs/single_null_dereference.c \ +RUN: %scan-build -plist -o %t.output_dir %clang -c %S/Inputs/single_null_dereference.c \ RUN: | FileCheck %s -check-prefix CHECK-STDOUT // Test plist output -- 2.7.4