summaryrefslogtreecommitdiff
path: root/tests/scripts/options/dash-t
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2003-03-25 00:15:25 +0000
committerPaul Smith <psmith@gnu.org>2003-03-25 00:15:25 +0000
commit955899ef770fc289febe3f186e4533e09baa7076 (patch)
tree4f3b49e3a7c2acba5cb614fdcf118814db022843 /tests/scripts/options/dash-t
parent4068c5e4a3eb0f47ec3cb4ee4fad5dd2edb9de6f (diff)
downloadgunmake-955899ef770fc289febe3f186e4533e09baa7076.tar.gz
Commit fix for bug #1418.
Upgrade to require autoconf 2.56. Fix a pathological performance hit substituting in large values with lots of words.
Diffstat (limited to 'tests/scripts/options/dash-t')
-rw-r--r--tests/scripts/options/dash-t20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/scripts/options/dash-t b/tests/scripts/options/dash-t
index 8192fbf..ec27d7a 100644
--- a/tests/scripts/options/dash-t
+++ b/tests/scripts/options/dash-t
@@ -35,4 +35,24 @@ $answer = "touch interm-a\ntouch final-a\ntouch interm-b\ntouch final-b\n";
unlink('orig1-a', 'orig2-a', 'interm-a', 'final-a');
unlink('orig1-b', 'orig2-b', 'interm-b', 'final-b');
+# TEST 1
+# -t should not touch files with no commands.
+
+$makefile2 = &get_tmpfile;
+
+open(MAKEFILE, "> $makefile2");
+print MAKEFILE <<'EOMAKE';
+
+PHOOEY: xxx
+xxx: ; @:
+
+EOMAKE
+close(MAKEFILE);
+
+&run_make_with_options($makefile2, "-t", &get_logfile);
+$answer = "touch xxx\n";
+&compare_output($answer, &get_logfile(1));
+
+unlink('xxx');
+
1;