21 lines · plain
1RUN: rm -rf %t.output_dir && mkdir %t.output_dir2RUN: %scan-build -plist -o %t.output_dir %clang -S %S/Inputs/single_null_dereference.c \3RUN: | FileCheck %s -check-prefix CHECK-STDOUT4 5// Test plist output6 7CHECK-STDOUT: scan-build: Using '{{.*}}' for static analysis8CHECK-STDOUT: scan-build: Analysis run complete.9CHECK-STDOUT: scan-build: Analysis results (plist files) deposited in '{{.*}}'10 11// We expect a single plist file12RUN: ls %t.output_dir/*/ | FileCheck %s -check-prefix CHECK-FILENAMES13 14CHECK-FILENAMES: report-{{.*}}.plist15 16// The report should describe the issue.17RUN: cat %t.output_dir/*/report-*.plist \18RUN: | FileCheck %s -check-prefix CHECK-REPORT-PLIST-CONTENTS19 20CHECK-REPORT-PLIST-CONTENTS: <key>type</key><string>Dereference of null pointer</string>21