mirror of
https://github.com/mirror/make.git
synced 2025-01-14 14:20:20 +08:00
c2792d6129
Change error and fatal messages to start with lowercase and not end with a period. Note a few very common messages were left as-is, just in case some other tools parse them. Also modify the test known-good-output to satisfy the messages.
23 lines
562 B
Perl
23 lines
562 B
Perl
#! -*-perl-*-
|
|
|
|
$description = "Test the behaviour of the .DELETE_ON_ERROR target.";
|
|
|
|
$details = "";
|
|
|
|
run_make_test('
|
|
.DELETE_ON_ERROR:
|
|
all: ; exit 1 > $@
|
|
',
|
|
'', "exit 1 > all\n#MAKE#: *** [#MAKEFILE#:3: all] Error 1\n#MAKE#: *** deleting file 'all'", 512);
|
|
|
|
run_make_test('
|
|
.DELETE_ON_ERROR:
|
|
all: foo.x ;
|
|
%.x : %.q ; echo > $@
|
|
%.q : ; exit 1 > $@
|
|
',
|
|
'', "exit 1 > foo.q\n#MAKE#: *** [#MAKEFILE#:5: foo.q] Error 1\n#MAKE#: *** deleting file 'foo.q'", 512);
|
|
|
|
# This tells the test driver that the perl test script executed properly.
|
|
1;
|