diff --git a/src/test/run-make/stdin-non-utf8/Makefile b/src/test/run-make/stdin-non-utf8/Makefile index f883e546e9c..7948c442616 100644 --- a/src/test/run-make/stdin-non-utf8/Makefile +++ b/src/test/run-make/stdin-non-utf8/Makefile @@ -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 index 00000000000..bc87051a852 --- /dev/null +++ b/src/test/run-make/stdin-non-utf8/non-utf8 @@ -0,0 +1 @@ +Ò