summaryrefslogtreecommitdiff
path: root/tests/scripts/variables/automatic
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scripts/variables/automatic')
-rw-r--r--tests/scripts/variables/automatic21
1 files changed, 16 insertions, 5 deletions
diff --git a/tests/scripts/variables/automatic b/tests/scripts/variables/automatic
index dc08bd7..847c836 100644
--- a/tests/scripts/variables/automatic
+++ b/tests/scripts/variables/automatic
@@ -87,11 +87,22 @@ run_make_test('
mbr.b: mbr.src
@echo $*
-mbr.src: ; @:
+mbr.src: ; @:',
+ '',
+ 'mbr');
-',
-'',
-'mbr
-');
+# TEST #3 -- test for Savannah bug #8154
+# Make sure that nonexistent prerequisites are listed in $?, since they are
+# considered reasons for the target to be rebuilt.
+#
+touch('foo');
+
+run_make_test('
+foo: bar ; @echo "\$$? = $?"
+bar: ;',
+ '',
+ '$? = bar');
+
+unlink('foo');
1;