From e3df5192258fba79f58a86d1fdcda5f38a816028 Mon Sep 17 00:00:00 2001 From: William Throwe Date: Thu, 1 Oct 2015 23:05:25 -0400 Subject: [PATCH] Fix run-make/bare-outfile test The reason this was not failing is fascinating. The variable $(rustc) is empty, so the make recipe was expanded as " -o foo foo.rs". make interpreted this as an instruction to run the command "o foo foo.rs" and ignore any failure that occurred, because it uses a leading '-' on a command to signal that behavior. --- src/test/run-make/bare-outfile/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/run-make/bare-outfile/Makefile b/src/test/run-make/bare-outfile/Makefile index 97d09c837c10a..baa4c1c0237b2 100644 --- a/src/test/run-make/bare-outfile/Makefile +++ b/src/test/run-make/bare-outfile/Makefile @@ -1,4 +1,6 @@ -include ../tools.mk all: - $(rustc) -o foo foo.rs + cp foo.rs $(TMPDIR) + cd $(TMPDIR) && $(RUSTC) -o foo foo.rs + $(call RUN,foo)