blob: 1b57448d358ca96a0867649160bcfa8804dd8c56 (
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
27
28
|
# -*-perl-*-
$description = "Test the behaviour of the .PHONY target.";
$details = "";
# Ensure turning on .POSIX enables the -e flag for the shell
# We can't just use "false" because on different systems it provides a
# different exit code.
run_make_test(q!
.POSIX:
all: ; @r() { return 1; }; r; true
!,
'', "#MAKE#: *** [all] Error 1\n", 512);
# User settings must override .POSIX
run_make_test(q!
.SHELLFLAGS = -xc
.POSIX:
all: ; @r() { return 1; }; r; true
!,
'', "+ r\n+ return 1\n+ true\n");
# This tells the test driver that the perl test script executed properly.
1;
|