diff options
author | Vedant Kumar <vsk@apple.com> | 2016-07-15 01:53:39 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-07-15 01:53:39 +0000 |
commit | b95dc4608d70887a5efc1db5301539b3b38fe8cc (patch) | |
tree | 77804acee003279917ab500d00fb0012c4809f6f /llvm/test/tools/llvm-cov/double_dots.c | |
parent | fa0f2a0dcff94b1c746937e805b9e78a6efeb6ef (diff) | |
download | bcm5719-llvm-b95dc4608d70887a5efc1db5301539b3b38fe8cc.tar.gz bcm5719-llvm-b95dc4608d70887a5efc1db5301539b3b38fe8cc.zip |
[llvm-cov] Improve error messages
While we're at it, extend an existing test to make sure that error
messages look reasonable.
llvm-svn: 275520
Diffstat (limited to 'llvm/test/tools/llvm-cov/double_dots.c')
-rw-r--r-- | llvm/test/tools/llvm-cov/double_dots.c | 5 |
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! |