- Enhance .POSIX to set -e when invoking shells, as demanded by a
[make.git] / tests / scripts / targets / POSIX
blob662c16d067dce0677cff3bbb9d33beda0e2dd73c
1 #                                                                    -*-perl-*-
3 $description = "Test the behaviour of the .PHONY target.";
5 $details = "";
8 # Ensure turning on .POSIX enables the -e flag for the shell
10 run_make_test(q!
11 .POSIX:
12 all: ; @false; true
14               '', "#MAKE#: *** [all] Error 1\n", 512);
16 # User settings must override .POSIX
18 run_make_test(q!
19 .SHELLFLAGS = -xc
20 .POSIX:
21 all: ; @false; true
23               '', "+ false\n+ true\n");
25 # This tells the test driver that the perl test script executed properly.