[llvm] r253014 - llvm/test/tools/llvm-profdata/text-format-errors.test: Use prepared version of the input file, instead of using echo.
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 12 22:06:59 PST 2015
Author: chapuni
Date: Fri Nov 13 00:06:58 2015
New Revision: 253014
URL: http://llvm.org/viewvc/llvm-project?rev=253014&view=rev
Log:
llvm/test/tools/llvm-profdata/text-format-errors.test: Use prepared version of the input file, instead of using echo.
...and s/\C9/\xC9/
Added:
llvm/trunk/test/tools/llvm-profdata/Inputs/text-format-errors.text.bin
Modified:
llvm/trunk/test/tools/llvm-profdata/text-format-errors.test
Added: llvm/trunk/test/tools/llvm-profdata/Inputs/text-format-errors.text.bin
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-profdata/Inputs/text-format-errors.text.bin?rev=253014&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-profdata/Inputs/text-format-errors.text.bin (added)
+++ llvm/trunk/test/tools/llvm-profdata/Inputs/text-format-errors.text.bin Fri Nov 13 00:06:58 2015
@@ -0,0 +1 @@
+ÿåбôɨ
\ No newline at end of file
Modified: llvm/trunk/test/tools/llvm-profdata/text-format-errors.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-profdata/text-format-errors.test?rev=253014&r1=253013&r2=253014&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-profdata/text-format-errors.test (original)
+++ llvm/trunk/test/tools/llvm-profdata/text-format-errors.test Fri Nov 13 00:06:58 2015
@@ -15,7 +15,6 @@ RUN: not llvm-profdata show %p/Inputs/no
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?
More information about the llvm-commits
mailing list