diff options
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/make.tests | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/make.tests b/testsuite/make.tests index 3c2aa5cf5..745a840f3 100755 --- a/testsuite/make.tests +++ b/testsuite/make.tests | |||
@@ -102,6 +102,20 @@ a = a | |||
102 | target:;@echo a = $(a) | 102 | target:;@echo a = $(a) |
103 | ' | 103 | ' |
104 | 104 | ||
105 | # When a build command fails and the '-k' option has been provided | ||
106 | # (continue execution on error) no further commands should be executed | ||
107 | # for the current target. | ||
108 | testing "make failure of build command with -k" \ | ||
109 | "make -k -f - 2>/dev/null" "OK\n" "" ' | ||
110 | all: bar baz | ||
111 | bar: | ||
112 | @echo OK | ||
113 | @false | ||
114 | @echo Not reached | ||
115 | baz: | ||
116 | @: | ||
117 | ' | ||
118 | |||
105 | # A macro created using ::= remembers it's of type immediate-expansion. | 119 | # A macro created using ::= remembers it's of type immediate-expansion. |
106 | # Immediate expansion also occurs when += is used to append to such a macro. | 120 | # Immediate expansion also occurs when += is used to append to such a macro. |
107 | testing "make appending to immediate-expansion macro" \ | 121 | testing "make appending to immediate-expansion macro" \ |