1 // FIXME: Actually, "perl".
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
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>