diff options
Diffstat (limited to 'testsuite/make.tests')
-rwxr-xr-x | testsuite/make.tests | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/make.tests b/testsuite/make.tests index 0397ab4de..6438c90c9 100755 --- a/testsuite/make.tests +++ b/testsuite/make.tests | |||
@@ -103,6 +103,29 @@ a = a | |||
103 | target:;@echo a = $(a) | 103 | target:;@echo a = $(a) |
104 | ' | 104 | ' |
105 | 105 | ||
106 | # Ensure an inline command on a target rule can be detected even if | ||
107 | # the semicolon is obfuscated. | ||
108 | testing "make equal sign in obfuscated inline command" \ | ||
109 | "make -f -" "a = a\n" "" ' | ||
110 | a = a | ||
111 | semi = ; | ||
112 | target:$(semi)@echo a = $(a) | ||
113 | ' | ||
114 | |||
115 | # The fix for the above test broke a complex chain of macro assignments | ||
116 | # generated by autotools. | ||
117 | testing "make complex chain of macro assignments" \ | ||
118 | "make -f -" "flag 1\n" "" ' | ||
119 | FLAG_ = $(FLAG_$(VALUE)) | ||
120 | FLAG_0 = flag 0 | ||
121 | FLAG_1 = flag 1 | ||
122 | MYFLAG = $(FLAG_$(VALUE)) | ||
123 | VALUE = 1 | ||
124 | |||
125 | target: | ||
126 | @echo $(MYFLAG) | ||
127 | ' | ||
128 | |||
106 | # When a build command fails and the '-k' option has been provided | 129 | # When a build command fails and the '-k' option has been provided |
107 | # (continue execution on error) no further commands should be executed | 130 | # (continue execution on error) no further commands should be executed |
108 | # for the current target. | 131 | # for the current target. |