diff options
| author | varkor <github@varkor.com> | 2018-01-31 11:56:15 +0000 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2018-01-31 11:56:15 +0000 |
| commit | a43d7eb3dd9cb97a81374001a23456bbee008d65 (patch) | |
| tree | ae004908a4148b0ef57d03932bba03b96f75e30d /src | |
| parent | 00a33d685be2d325381a5b2842774f4ad1039dff (diff) | |
| download | rust-a43d7eb3dd9cb97a81374001a23456bbee008d65.tar.gz rust-a43d7eb3dd9cb97a81374001a23456bbee008d65.zip | |
Use file containing non-UTF-8 character instead of echo -e
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/run-make/stdin-non-utf8/Makefile | 3 | ||||
| -rw-r--r-- | src/test/run-make/stdin-non-utf8/non-utf8 | 1 |
2 files changed, 3 insertions, 1 deletions
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 @@ +Ò |
