mirror of
https://github.com/mirror/make.git
synced 2025-01-06 10:21:00 +08:00
* DELETE_ON_ERROR: [SV 48061] Use "exit 1" for portability.
Reported by Joel Fredrikson <Joel.Fredrikson@it.uu.se>
This commit is contained in:
parent
cf4ed2ebe8
commit
ef6c059e1e
@ -6,17 +6,17 @@ $details = "";
|
|||||||
|
|
||||||
run_make_test('
|
run_make_test('
|
||||||
.DELETE_ON_ERROR:
|
.DELETE_ON_ERROR:
|
||||||
all: ; false > $@
|
all: ; exit 1 > $@
|
||||||
',
|
',
|
||||||
'', "false > all\n#MAKE#: *** [#MAKEFILE#:3: all] Error 1\n#MAKE#: *** Deleting file 'all'", 512);
|
'', "exit 1 > all\n#MAKE#: *** [#MAKEFILE#:3: all] Error 1\n#MAKE#: *** Deleting file 'all'", 512);
|
||||||
|
|
||||||
run_make_test('
|
run_make_test('
|
||||||
.DELETE_ON_ERROR:
|
.DELETE_ON_ERROR:
|
||||||
all: foo.x ;
|
all: foo.x ;
|
||||||
%.x : %.q ; echo > $@
|
%.x : %.q ; echo > $@
|
||||||
%.q : ; false > $@
|
%.q : ; exit 1 > $@
|
||||||
',
|
',
|
||||||
'', "false > foo.q\n#MAKE#: *** [#MAKEFILE#:5: foo.q] Error 1\n#MAKE#: *** Deleting file 'foo.q'", 512);
|
'', "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.
|
# This tells the test driver that the perl test script executed properly.
|
||||||
1;
|
1;
|
||||||
|
Loading…
Reference in New Issue
Block a user