3 RUN: rm -rf %t.output_dir && mkdir %t.output_dir
4 RUN: %scan-build -plist -o %t.output_dir %clang -S %S/Inputs/single_null_dereference.c \
5 RUN: | FileCheck %s -check-prefix CHECK-STDOUT
9 CHECK-STDOUT: scan-build: Using '{{.*}}' for static analysis
10 CHECK-STDOUT: scan-build: Analysis run complete.
11 CHECK-STDOUT: scan-build: Analysis results (plist files) deposited in '{{.*}}'
13 // We expect a single plist file
14 RUN: ls %t.output_dir/*/ | FileCheck %s -check-prefix CHECK-FILENAMES
16 CHECK-FILENAMES: report-{{.*}}.plist
18 // The report should describe the issue.
19 RUN: cat %t.output_dir/*/report-*.plist \
20 RUN: | FileCheck %s -check-prefix CHECK-REPORT-PLIST-CONTENTS
22 CHECK-REPORT-PLIST-CONTENTS: <key>type</key><string>Dereference of null pointer</string>