diff options
author | Paul Smith <psmith@gnu.org> | 2005-06-25 23:00:17 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2005-06-25 23:00:17 +0000 |
commit | f388233b033ccae26e567fb573fd3d7a87c71744 (patch) | |
tree | 1c51defb3a7e907880bb538ce9fd19bf6333d7d2 /tests | |
parent | 6cdaff0948bbec3220d5cb071f79d5f2e1c9b083 (diff) | |
download | gunmake-f388233b033ccae26e567fb573fd3d7a87c71744.tar.gz |
Fix Savannah bug # 13478. If -L is given, take the latest mtime for a
symlink even if it is "dangling" (it doesn't resolve to a real file).
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ChangeLog | 3 | ||||
-rw-r--r-- | tests/scripts/options/symlinks | 13 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index fa6420d..143bc2f 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,5 +1,8 @@ 2005-06-25 Paul D. Smith <psmith@gnu.org> + * scripts/options/symlinks: Test symlinks to non-existent files. + Tests fix for Savannah bug #13280. + * scripts/misc/general3: Test semicolons in variable references. Tests fix for Savannah bug #1454. diff --git a/tests/scripts/options/symlinks b/tests/scripts/options/symlinks index 4dcc67a..d63e222 100644 --- a/tests/scripts/options/symlinks +++ b/tests/scripts/options/symlinks @@ -42,6 +42,19 @@ if (eval { symlink("",""); 1 }) { run_make_test(undef, '-L', "make targ from sym"); rmfiles('targ', 'dep', 'sym', 'dep1'); + + # Check handling when symlinks point to non-existent files. Without -L we + # should get an error: with -L we should use the timestamp of the symlink. + + symlink("../$dirname/dep", 'sym'); + run_make_test('targ: sym ; @echo make $@ from $<', '', + "#MAKE#: *** No rule to make target `sym', needed by `targ'. Stop.", 512); + + run_make_test('targ: sym ; @echo make $@ from $<', '-L', + 'make targ from sym'); + + + rmfiles('targ', 'sym'); } 1; |