summaryrefslogtreecommitdiff
path: root/test/tools
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-03-21 20:42:37 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-03-21 20:42:37 +0000
commit813d0a276112d79ba13a2cab9f785d1f18e6193d (patch)
treeea717f50d294579df27eca17f00063bd77639c1f /test/tools
parentbc2740a5981161bec9d81be36cb135428cb26b6d (diff)
InstrProf: Change magic number to have non-text characters
Include non-text characters in the magic number so that text files can't match. <rdar://problem/15950346> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204513 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tools')
-rw-r--r--test/tools/llvm-profdata/Inputs/binary.profdatabin1384 -> 1384 bytes
-rw-r--r--test/tools/llvm-profdata/raw-magic-but-no-header.test4
2 files changed, 2 insertions, 2 deletions
diff --git a/test/tools/llvm-profdata/Inputs/binary.profdata b/test/tools/llvm-profdata/Inputs/binary.profdata
index 156c483d15f..e8cef21de5f 100644
--- a/test/tools/llvm-profdata/Inputs/binary.profdata
+++ b/test/tools/llvm-profdata/Inputs/binary.profdata
Binary files differ
diff --git a/test/tools/llvm-profdata/raw-magic-but-no-header.test b/test/tools/llvm-profdata/raw-magic-but-no-header.test
index e899ece2755..6db723c3e25 100644
--- a/test/tools/llvm-profdata/raw-magic-but-no-header.test
+++ b/test/tools/llvm-profdata/raw-magic-but-no-header.test
@@ -1,6 +1,6 @@
-RUN: printf "warforpl" > %t
+RUN: printf '\201rforpl\377' > %t
RUN: not llvm-profdata show %t 2>&1 | FileCheck %s
-RUN: printf "lprofraw" > %t
+RUN: printf '\377lprofr\201' > %t
RUN: not llvm-profdata show %t 2>&1 | FileCheck %s
CHECK: error: {{.+}}: Invalid header