Fixed Savannah bugs #13216 and #13218.

This commit is contained in:
Boris Kolpackov
2005-05-31 20:54:30 +00:00
parent e50e0fdf88
commit af88a3550a
6 changed files with 74 additions and 2 deletions

View File

@@ -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;