]> granicus.if.org Git - clang/commitdiff
Add a test case for r185707/PR16547.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 5 Jul 2013 15:51:00 +0000 (15:51 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 5 Jul 2013 15:51:00 +0000 (15:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185708 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/html-diags.c

index 1ec4d18884adaa00c6416de5f32ffd2d7a06e115..1b01783d5d24f7a057bff2acc09e0b121b2afac8 100644 (file)
@@ -1,6 +1,14 @@
 // RUN: rm -fR %T/dir
 // RUN: mkdir %T/dir
 // RUN: %clang_cc1 -analyze -analyzer-output=html -analyzer-checker=core -o %T/dir %s
+// RUN: ls %T/dir | grep report
+
+// PR16547: Test relative paths
+// RUN: cd %T/dir
+// RUN: %clang_cc1 -analyze -analyzer-output=html -analyzer-checker=core -o testrelative %s
+// RUN: ls %T/dir/testrelative | grep report
+
+// REQUIRES: shell
 
 // Currently this test mainly checks that the HTML diagnostics doesn't crash
 // when handling macros will calls with macros.  We should actually validate