mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-12-28 15:57:48 +00:00
6264deece3
Ensure Emacs compile-mode's next-error doesn't match target failure messages. Syntax errors in makefiles are still matched.
22 lines
562 B
Perl
22 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;
|