Skip to content

Commit

Permalink
Replace grep -z by tr -d '\r\n' | grep for cross-compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Yorwba committed Jun 29, 2017
1 parent 8205c34 commit 21bb60a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/run-make/type-mismatch-same-crate-name/Makefile
Expand Up @@ -8,7 +8,7 @@ all:
$(RUSTC) --crate-type=rlib crateB.rs --extern crateA=$(TMPDIR)/libcrateA-1.rlib
# make crateC depend on version 2 of crateA
$(RUSTC) crateC.rs --extern crateA=$(TMPDIR)/libcrateA-2.rlib 2>&1 | \
grep -z \
tr -d '\r\n' | grep \
"mismatched types.*\
crateB::try_foo(foo2);.*\
expected struct \`crateA::foo::Foo\`, found struct \`crateA::Foo\`.*\
Expand Down

0 comments on commit 21bb60a

Please sign in to comment.