about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorWilliam Throwe <wtt6@cornell.edu>2015-10-01 23:05:25 -0400
committerWilliam Throwe <wtt6@cornell.edu>2015-10-03 17:20:45 -0400
commite3df5192258fba79f58a86d1fdcda5f38a816028 (patch)
treee335884ff7c81b7e174ac8e4b3037f343fbdf114 /src/test
parent54f7b1d455915794ab000448799c5092c57535c1 (diff)
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.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-make/bare-outfile/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/run-make/bare-outfile/Makefile b/src/test/run-make/bare-outfile/Makefile
index 97d09c837c1..baa4c1c0237 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)