Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Analysis / scan-build / plist_output.test
blob0112e84630eda2996b09db1a94c0df417b8b2e33
1 // FIXME: Actually, "perl".
2 REQUIRES: shell
4 RUN: rm -rf %t.output_dir && mkdir %t.output_dir
5 RUN: %scan-build -plist -o %t.output_dir %clang -S %S/Inputs/single_null_dereference.c \
6 RUN:     | FileCheck %s -check-prefix CHECK-STDOUT
8 // Test plist output
10 CHECK-STDOUT: scan-build: Using '{{.*}}' for static analysis
11 CHECK-STDOUT: scan-build: Analysis run complete.
12 CHECK-STDOUT: scan-build: Analysis results (plist files) deposited in '{{.*}}'
14 // We expect a single plist file
15 RUN: ls %t.output_dir/*/ | FileCheck %s -check-prefix CHECK-FILENAMES
17 CHECK-FILENAMES: report-{{.*}}.plist
19 // The report should describe the issue.
20 RUN: cat %t.output_dir/*/report-*.plist \
21 RUN:     | FileCheck %s -check-prefix CHECK-REPORT-PLIST-CONTENTS
23 CHECK-REPORT-PLIST-CONTENTS: <key>type</key><string>Dereference of null pointer</string>