llvm/test/tools/llvm-profdata/text-format-errors.test: Use prepared version of the...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 13 Nov 2015 06:06:58 +0000 (06:06 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 13 Nov 2015 06:06:58 +0000 (06:06 +0000)
...and s/\C9/\xC9/

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253014 91177308-0d34-0410-b5e6-96231b3b80d8

test/tools/llvm-profdata/Inputs/text-format-errors.text.bin [new file with mode: 0644]
test/tools/llvm-profdata/text-format-errors.test

diff --git a/test/tools/llvm-profdata/Inputs/text-format-errors.text.bin b/test/tools/llvm-profdata/Inputs/text-format-errors.text.bin
new file mode 100644 (file)
index 0000000..9e2e3f5
--- /dev/null
@@ -0,0 +1 @@
+ÿåбôÉ\94¨
\ No newline at end of file
index 113b10e..c8500bf 100644 (file)
@@ -15,7 +15,6 @@ RUN: not llvm-profdata show %p/Inputs/no-counts.proftext 2>&1 | FileCheck %s --c
 NO-COUNTS: error: {{.*}}no-counts.proftext: Malformed instrumentation profile data
 
 4- Detect binary input
 NO-COUNTS: error: {{.*}}no-counts.proftext: Malformed instrumentation profile data
 
 4- Detect binary input
-RUN: echo -n $'\xff\xe5\xd0\xb1\xf4\c9\x94\xa8' > %t.bin
-RUN: not llvm-profdata show %t.bin 2>&1 | FileCheck %s --check-prefix=BINARY
+RUN: not llvm-profdata show %p/Inputs/text-format-errors.text.bin 2>&1 | FileCheck %s --check-prefix=BINARY
 BINARY: error: {{.+}}: Unrecognized instrumentation profile encoding format
 BINARY: Perhaps you forgot to use the -sample option?
 BINARY: error: {{.+}}: Unrecognized instrumentation profile encoding format
 BINARY: Perhaps you forgot to use the -sample option?