]> git.lizzy.rs Git - rust.git/commitdiff
Use file containing non-UTF-8 character instead of echo -e
authorvarkor <github@varkor.com>
Wed, 31 Jan 2018 11:56:15 +0000 (11:56 +0000)
committervarkor <github@varkor.com>
Wed, 31 Jan 2018 11:56:15 +0000 (11:56 +0000)
src/test/run-make/stdin-non-utf8/Makefile
src/test/run-make/stdin-non-utf8/non-utf8 [new file with mode: 0644]

index f883e546e9c9b97082932afb7fbe8d9a1e0e79de..7948c442616e301fc26aeef148e60f808a22df92 100644 (file)
@@ -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"
diff --git a/src/test/run-make/stdin-non-utf8/non-utf8 b/src/test/run-make/stdin-non-utf8/non-utf8
new file mode 100644 (file)
index 0000000..bc87051
--- /dev/null
@@ -0,0 +1 @@