summaryrefslogtreecommitdiff
path: root/tests/scripts/targets/POSIX
blob: 662c16d067dce0677cff3bbb9d33beda0e2dd73c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#                                                                    -*-perl-*-

$description = "Test the behaviour of the .PHONY target.";

$details = "";


# Ensure turning on .POSIX enables the -e flag for the shell

run_make_test(q!
.POSIX:
all: ; @false; true
!,
              '', "#MAKE#: *** [all] Error 1\n", 512);

# User settings must override .POSIX

run_make_test(q!
.SHELLFLAGS = -xc
.POSIX:
all: ; @false; true
!,
              '', "+ false\n+ true\n");

# This tells the test driver that the perl test script executed properly.
1;