diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-03-21 20:42:28 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-03-21 20:42:28 +0000 |
commit | 531bb481e22f429157811f215c044ee0634f2c1f (patch) | |
tree | c3a796d0bf0314869ed8add29ee5f4aeecc3e0d9 /llvm/test/tools/llvm-profdata | |
parent | 83ba74fa3f16ff396b6d609c5dabf3eda3f221d2 (diff) | |
download | bcm5719-llvm-531bb481e22f429157811f215c044ee0634f2c1f.tar.gz bcm5719-llvm-531bb481e22f429157811f215c044ee0634f2c1f.zip |
InstrProf: Actually detect bad headers
<rdar://problem/15950346>
llvm-svn: 204510
Diffstat (limited to 'llvm/test/tools/llvm-profdata')
-rw-r--r-- | llvm/test/tools/llvm-profdata/raw-magic-but-no-header.test | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-profdata/raw-magic-but-no-header.test b/llvm/test/tools/llvm-profdata/raw-magic-but-no-header.test new file mode 100644 index 00000000000..e899ece2755 --- /dev/null +++ b/llvm/test/tools/llvm-profdata/raw-magic-but-no-header.test @@ -0,0 +1,6 @@ +RUN: printf "warforpl" > %t +RUN: not llvm-profdata show %t 2>&1 | FileCheck %s +RUN: printf "lprofraw" > %t +RUN: not llvm-profdata show %t 2>&1 | FileCheck %s + +CHECK: error: {{.+}}: Invalid header |