rust/tests/run-make/jobserver-error/Makefile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
592 B
Makefile
Raw Normal View History

include ../tools.mk
# only-linux
2023-07-15 10:48:09 -05:00
# ignore-cross-compile
2023-07-15 10:48:09 -05:00
# Test compiler behavior in case environment specifies wrong jobserver.
all:
2023-07-15 10:48:09 -05:00
bash -c 'echo "fn main() {}" | MAKEFLAGS="--jobserver-auth=3,3" $(RUSTC)' 2>&1 | diff cannot_open_fd.stderr -
bash -c 'echo "fn main() {}" | MAKEFLAGS="--jobserver-auth=3,3" $(RUSTC) - 3</dev/null' 2>&1 | diff not_a_pipe.stderr -
# This test randomly fails, see https://github.com/rust-lang/rust/issues/110321
disabled:
bash -c 'echo "fn main() {}" | MAKEFLAGS="--jobserver-auth=3,3" $(RUSTC) - 3< <(cat /dev/null)' 2>&1 | diff poisoned_pipe.stderr -