mirror of
https://github.com/mirror/make.git
synced 2026-09-05 14:15:00 +08:00
Various enhancements
- OS/2 Patches - OpenVMS updates - Sanitize the handling of -include/sinclude with and without -k - Fix the setting of $< for order-only rules.
This commit is contained in:
@@ -33,6 +33,10 @@ chdir $workdir;
|
||||
$wpath = &get_this_pwd;
|
||||
chdir $pwd;
|
||||
|
||||
if (-f $example) {
|
||||
$test_passed = 0;
|
||||
}
|
||||
|
||||
# Create the answer to what should be produced by this Makefile
|
||||
$answer = "$make_name: Entering directory `$wpath'\n"
|
||||
. "$delete_command EXAMPLE_FILE\n"
|
||||
@@ -40,9 +44,4 @@ $answer = "$make_name: Entering directory `$wpath'\n"
|
||||
|
||||
&compare_output($answer,&get_logfile(1));
|
||||
|
||||
if (-f $example)
|
||||
{
|
||||
$test_passed = 0;
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
@@ -97,4 +97,18 @@ $make_name: Target `all' not remade because of errors.\n";
|
||||
|
||||
&compare_output($answer, &get_logfile(1));
|
||||
|
||||
# TEST -- make sure we keep the error code if we can't create an included
|
||||
# makefile.
|
||||
|
||||
run_make_test('all: ; @echo hi
|
||||
include ifile
|
||||
ifile: no-such-file; @false
|
||||
',
|
||||
'-k',
|
||||
"#MAKEFILE#:2: ifile: No such file or directory
|
||||
#MAKE#: *** No rule to make target `no-such-file', needed by `ifile'.
|
||||
#MAKE#: Failed to remake makefile `ifile'.
|
||||
hi\n",
|
||||
512);
|
||||
|
||||
1;
|
||||
|
||||
Reference in New Issue
Block a user