]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* DELETE_ON_ERROR: [SV 48061] Use "exit 1" for portability.
authorPaul Smith <psmith@gnu.org>
Tue, 31 May 2016 06:26:26 +0000 (02:26 -0400)
committerPaul Smith <psmith@gnu.org>
Tue, 31 May 2016 07:17:26 +0000 (03:17 -0400)
Reported by Joel Fredrikson <Joel.Fredrikson@it.uu.se>

tests/scripts/targets/DELETE_ON_ERROR

index db9709325ce788b13fdf63aae4a14069a5a1335b..f0d9f9b4d63fa61fe288c8c6e63205a81963ffa3 100644 (file)
@@ -6,17 +6,17 @@ $details = "";
 
 run_make_test('
 .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('
 .DELETE_ON_ERROR:
 all: foo.x ;
 %.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.
 1;