summaryrefslogtreecommitdiff
path: root/tests/scripts/features/conditionals
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2002-09-10 22:23:20 +0000
committerPaul Smith <psmith@gnu.org>2002-09-10 22:23:20 +0000
commitbc91c0b23f27cc80dda01c7494906523754dc650 (patch)
tree1f89852be95473cb28e9e6d9e48d174984e609ae /tests/scripts/features/conditionals
parent5297a83b276f09de626d678d1fae80f5e76db08d (diff)
downloadgunmake-bc91c0b23f27cc80dda01c7494906523754dc650.tar.gz
A few test bug fixes:
* Never use "touch" in make rules; it breaks on most sub-second supporting systems. Use echo "" > $@ instead. * Forgot to close test makefiles before using them! All the above worked fine on Linux but failed miserably on Solaris.
Diffstat (limited to 'tests/scripts/features/conditionals')
-rw-r--r--tests/scripts/features/conditionals5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/scripts/features/conditionals b/tests/scripts/features/conditionals
index ab3d9d5..9aad1d1 100644
--- a/tests/scripts/features/conditionals
+++ b/tests/scripts/features/conditionals
@@ -51,7 +51,6 @@ close(MAKEFILE);
&run_make_with_options($makefile,"",&get_logfile,0);
-# Create the answer to what should be produced by this Makefile
$answer = "arg1 NOT equal arg2
arg2 equals arg5
arg3 NOT equal arg4
@@ -59,8 +58,6 @@ variable is undefined
arg4 is defined
";
-# COMPARE RESULTS
-
&compare_output($answer,&get_logfile(1));
@@ -92,6 +89,8 @@ all:; @echo DEF=$(DEF) DEF2=$(DEF2)
EOF
+close(MAKEFILE)
+
&run_make_with_options($makefile2,"",&get_logfile,0);
$answer = "DEF=yes DEF2=yes\n";
&compare_output($answer,&get_logfile(1));