diff --git a/clang/test/Analysis/scan-build/exclude_directories.test b/clang/test/Analysis/scan-build/exclude_directories.test index b73d6270c1ba5..56acbd15b8fb3 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 1f56d17cd3fb3..b3b8aa0cf2cfe 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 8af35e6be7fcf..4bd7c564a2c92 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 1a921a4af5ade..30f90a2d696e6 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