mirror of
https://github.com/mirror/make.git
synced 2026-09-02 12:48:09 +08:00
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.
This commit is contained in:
@@ -131,6 +131,8 @@ all:
|
||||
|
||||
EOF
|
||||
|
||||
close(MAKEFILE);
|
||||
|
||||
&run_make_with_options($makefile2,"",&get_logfile,0);
|
||||
$answer = "foo=f-ok bar=b-ok\nfoo=f-ok bar=b-ok\n";
|
||||
&compare_output($answer,&get_logfile(1));
|
||||
@@ -164,6 +166,8 @@ all:
|
||||
|
||||
EOF
|
||||
|
||||
close(MAKEFILE);
|
||||
|
||||
&run_make_with_options($makefile3,"",&get_logfile,0);
|
||||
$answer = "foo=f-ok bar=b-ok\nfoo= bar=\n";
|
||||
&compare_output($answer,&get_logfile(1));
|
||||
|
||||
Reference in New Issue
Block a user