summaryrefslogtreecommitdiff
path: root/tests/scripts/features/patternrules
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@kolpackov.net>2005-05-31 20:54:30 +0000
committerBoris Kolpackov <boris@kolpackov.net>2005-05-31 20:54:30 +0000
commitaf88a3550a6202361aa9eab7e59d83b0bf2c1610 (patch)
treefdcc9f84496083cac0fa2a852c56e9409c50be56 /tests/scripts/features/patternrules
parente50e0fdf8856fada821393af3dbd268db09c3b47 (diff)
downloadgunmake-af88a3550a6202361aa9eab7e59d83b0bf2c1610.tar.gz
Fixed Savannah bugs #13216 and #13218.
Diffstat (limited to 'tests/scripts/features/patternrules')
-rw-r--r--tests/scripts/features/patternrules20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/scripts/features/patternrules b/tests/scripts/features/patternrules
index ee29c4e..0e2f281 100644
--- a/tests/scripts/features/patternrules
+++ b/tests/scripts/features/patternrules
@@ -95,5 +95,25 @@ $dir/foo.o");
unlink("$dir/foo.c");
+
+# TEST #4: make sure precious flag is set properly for targets
+# that are built via implicit rules (Savannah bug #13218).
+#
+run_make_test('
+.DELETE_ON_ERROR:
+
+.PRECIOUS: %.bar
+
+%.bar:; @touch $@ && false
+
+$(dir)/foo.bar:
+
+',
+"dir=$dir",
+"make: *** [$dir/foo.bar] Error 1",
+512);
+
+unlink("$dir/foo.bar");
+
# This tells the test driver that the perl test script executed properly.
1;