• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// FIXME: Actually, "perl".
2REQUIRES: shell
3
4RUN: rm -rf %t.output_dir && mkdir %t.output_dir
5RUN: %scan-build -plist -o %t.output_dir %clang -S %S/Inputs/single_null_dereference.c \
6RUN:     | FileCheck %s -check-prefix CHECK-STDOUT
7
8// Test plist output
9
10CHECK-STDOUT: scan-build: Using '{{.*}}' for static analysis
11CHECK-STDOUT: scan-build: Analysis run complete.
12CHECK-STDOUT: scan-build: Analysis results (plist files) deposited in '{{.*}}'
13
14// We expect a single plist file
15RUN: ls %t.output_dir/*/ | FileCheck %s -check-prefix CHECK-FILENAMES
16
17CHECK-FILENAMES: report-{{.*}}.plist
18
19// The report should describe the issue.
20RUN: cat %t.output_dir/*/report-*.plist \
21RUN:     | FileCheck %s -check-prefix CHECK-REPORT-PLIST-CONTENTS
22
23CHECK-REPORT-PLIST-CONTENTS: <key>type</key><string>Dereference of null pointer</string>
24