diff options
author | Paul Smith <psmith@gnu.org> | 2006-02-06 16:21:59 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2006-02-06 16:21:59 +0000 |
commit | a4e3523fe408158c15026a884d1515c34de27de6 (patch) | |
tree | 04e2cbfa11c6c6f30c625a6427f736d0719fbb76 /tests/scripts/options | |
parent | 7a8549f5dd339eec9cb57c8cfe11cf71b77759d2 (diff) | |
download | gunmake-a4e3523fe408158c15026a884d1515c34de27de6.tar.gz |
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.
Diffstat (limited to 'tests/scripts/options')
-rw-r--r-- | tests/scripts/options/dash-W | 28 |
1 files changed, 28 insertions, 0 deletions
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; |