From a4e3523fe408158c15026a884d1515c34de27de6 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 6 Feb 2006 16:21:59 +0000 Subject: Fix Savannah bugs # 15341, 15534, and 15533. Rewrite large chunks of the "Commands" section of the manual to better describe then backslash-newline handling, the SHELL variable, etc. --- tests/scripts/options/dash-W | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'tests/scripts/options/dash-W') diff --git a/tests/scripts/options/dash-W b/tests/scripts/options/dash-W index baa04a5..50745f7 100644 --- a/tests/scripts/options/dash-W +++ b/tests/scripts/options/dash-W @@ -57,4 +57,32 @@ run_make_test(undef, '-W bar.x', "restarts=\ntouch foo.x\nrestarts=1\ntouch baz. rmfiles('foo.x', 'bar.x'); +# Test -W on vpath-found files: it should take effect. +# Savannah bug # 15341 + +mkdir('x-dir'); +utouch(-20, 'x-dir/x'); +touch('y'); + +run_make_test(' +y: x ; @echo cp $< $@ +', + '-W x-dir/x VPATH=x-dir', + 'cp x-dir/x y'); + +# Make sure ./ stripping doesn't interfere with the match. + +run_make_test(' +y: x ; @echo cp $< $@ +', + '-W ./x-dir/x VPATH=x-dir', + 'cp x-dir/x y'); + +run_make_test(undef, + '-W x-dir/x VPATH=./x-dir', + 'cp ./x-dir/x y'); + +unlink(qw(y x-dir/x)); +rmdir('x-dir'); + 1; -- cgit v1.2.3