diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ChangeLog | 5 | ||||
-rw-r--r-- | tests/scripts/options/dash-n | 30 |
2 files changed, 35 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index ef2ef62..6c6387d 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +1999-10-13 Paul D. Smith <psmith@gnu.org> + + * scripts/options/dash-n: Add a test for PR/1379: "-n doesn't + behave properly when used with recursive targets". + 1999-10-08 Paul D. Smith <psmith@gnu.org> * scripts/features/targetvars: Add a check for PR/1378: diff --git a/tests/scripts/options/dash-n b/tests/scripts/options/dash-n index c1f4aab..02d7f07 100644 --- a/tests/scripts/options/dash-n +++ b/tests/scripts/options/dash-n @@ -28,4 +28,34 @@ $answer = "echo >> intermediate\necho >> final\n"; unlink('orig', 'intermediate', 'final'); +# TEST2 +# We consider the actual updated timestamp of targets with all +# recursive commands, even with -n. + +$makefile2 = &get_tmpfile; + +open(MAKEFILE, "> $makefile2"); + +print MAKEFILE <<'EOF'; +.SUFFIXES: +BAR = # nothing +FOO = +$(BAR) +a: b; echo > $@ +b: c; $(FOO) +EOF + +close(MAKEFILE); + +&touch('a', 'b'); +sleep(1); +&touch('c'); + +&run_make_with_options($makefile2, "", &get_logfile); +$answer = "$make_name: `a' is up to date.\n"; +&compare_output($answer, &get_logfile(1)); + +&run_make_with_options($makefile2, "-n", &get_logfile); +$answer = "$make_name: `a' is up to date.\n"; +&compare_output($answer, &get_logfile(1)); + 1; |