Line | |
---|
1 | #! -*-perl-*-
|
---|
2 |
|
---|
3 | $description = "Test the behaviour of the .DELETE_ON_ERROR target.";
|
---|
4 |
|
---|
5 | $details = "";
|
---|
6 |
|
---|
7 | run_make_test('
|
---|
8 | .DELETE_ON_ERROR:
|
---|
9 | all: ; exit 1 > $@
|
---|
10 | ',
|
---|
11 | '', "exit 1 > all\n#MAKE#: *** [#MAKEFILE#:3: all] Error 1\n#MAKE#: *** Deleting file 'all'", 512);
|
---|
12 |
|
---|
13 | run_make_test('
|
---|
14 | .DELETE_ON_ERROR:
|
---|
15 | all: foo.x ;
|
---|
16 | %.x : %.q ; echo > $@
|
---|
17 | %.q : ; exit 1 > $@
|
---|
18 | ',
|
---|
19 | '', "exit 1 > foo.q\n#MAKE#: *** [#MAKEFILE#:5: foo.q] Error 1\n#MAKE#: *** Deleting file 'foo.q'", 512);
|
---|
20 |
|
---|
21 | # This tells the test driver that the perl test script executed properly.
|
---|
22 | 1;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.