Convert all "`'" quotes to "''" per new GNU Coding Standard guidelines.
[make.git] / tests / scripts / targets / POSIX
blob35c59b12cdc73027861f1db5b493e866a7dac874
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
9 # We can't assume the exit value of "false" because on different systems it's
10 # different.
12 my $script = 'false; true';
13 my $flags = '-ec';
14 my $out = `/bin/sh $flags '$script' 2>&1`;
15 my $err = $? >> 8;
16 run_make_test(qq!
17 .POSIX:
18 all: ; \@$script
20               '', "#MAKEFILE#:3: recipe for target 'all' failed
21 #MAKE#: *** [all] Error $err\n", 512);
23 # User settings must override .POSIX
24 $flags = '-xc';
25 $out = `/bin/sh $flags '$script' 2>&1`;
26 run_make_test(qq!
27 .SHELLFLAGS = $flags
28 .POSIX:
29 all: ; \@$script
31               '', $out);
33 # This tells the test driver that the perl test script executed properly.