summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-cov/double_dots.c
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/tools/llvm-cov/double_dots.c')
-rw-r--r--llvm/test/tools/llvm-cov/double_dots.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/double_dots.c b/llvm/test/tools/llvm-cov/double_dots.c
index 47224bf9ade..adfd9f7f353 100644
--- a/llvm/test/tools/llvm-cov/double_dots.c
+++ b/llvm/test/tools/llvm-cov/double_dots.c
@@ -15,3 +15,8 @@ int main() {}
// RUN: FileCheck -check-prefix=REL-INDEX -input-file %t.dir/index.txt %s
// REL-INDEX-NOT: %t.dir
+
+// Check that we get the right error when writing to an invalid path:
+
+// RUN: not llvm-cov show %S/Inputs/double_dots.covmapping -instr-profile=%t.profdata -o /dev/null 2>&1 | FileCheck %s -check-prefix=ERROR-MESSAGE
+// ERROR-MESSAGE: error: Not a directory: Could not create index file!
OpenPOWER on IntegriCloud