Use file containing non-UTF-8 character instead of echo -e
This commit is contained in:
parent
00a33d685b
commit
a43d7eb3dd
@ -1,5 +1,6 @@
|
||||
-include ../tools.mk
|
||||
|
||||
all:
|
||||
echo -e '\xD2' | $(RUSTC) - 2>&1 \
|
||||
cp non-utf8 $(TMPDIR)/non-utf.rs
|
||||
cat $(TMPDIR)/non-utf.rs | $(RUSTC) - 2>&1 \
|
||||
| $(CGREP) "error: couldn't read from stdin, as it did not contain valid UTF-8"
|
||||
|
1
src/test/run-make/stdin-non-utf8/non-utf8
Normal file
1
src/test/run-make/stdin-non-utf8/non-utf8
Normal file
@ -0,0 +1 @@
|
||||
<EFBFBD>
|
Loading…
x
Reference in New Issue
Block a user