From 9a9f83e8b52a3923efc6b4cf8c8f444773a30953 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Fri, 2 Sep 2011 05:37:54 +0000 Subject: Ensure that -n takes precedence over -t. Patch from Michael Witten --- tests/scripts/options/dash-n | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'tests/scripts/options') diff --git a/tests/scripts/options/dash-n b/tests/scripts/options/dash-n index de19f42..248e0c8 100644 --- a/tests/scripts/options/dash-n +++ b/tests/scripts/options/dash-n @@ -65,6 +65,21 @@ $answer = "$make_name: `a' is up to date.\n"; $answer = "$make_name: `a' is up to date.\n"; &compare_output($answer, &get_logfile(1)); -unlink('a', 'b', 'c'); +# TEST 4 + +unlink(qw(a b)); + +&run_make_with_options($makefile2, "-t -n", &get_logfile); + +open(DASH_N_LOG, ">>" . &get_logfile(1)); +print DASH_N_LOG "a exists but should not!\n" if -e 'a'; +print DASH_N_LOG "b exists but should not!\n" if -e 'b'; +close(DASH_N_LOG); + +&compare_output("touch b\ntouch a\n", &get_logfile(1)); + +# CLEANUP + +unlink(qw(a b c)); 1; -- cgit v1.2.3