aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2022-11-13 15:13:55 +0000
committerRon Yorston <rmy@pobox.com>2022-11-13 15:13:55 +0000
commitf97b2b0875027d51fe272a6e94049d387f8b680d (patch)
tree1a15598bd4cbb1e2f2ed22bd591476607a1cc61a /testsuite
parente633f7cb2abe0068e1980d3818b1ad01f6392e8e (diff)
downloadbusybox-w32-f97b2b0875027d51fe272a6e94049d387f8b680d.tar.gz
busybox-w32-f97b2b0875027d51fe272a6e94049d387f8b680d.tar.bz2
busybox-w32-f97b2b0875027d51fe272a6e94049d387f8b680d.zip
make: use correct test for valid macro name
The test for valid macro names in POSIX mode was incorrect: it shouldn't have allowed '-'.
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/make.tests13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/make.tests b/testsuite/make.tests
index 70c1231b9..8a0f1a7d2 100755
--- a/testsuite/make.tests
+++ b/testsuite/make.tests
@@ -339,6 +339,19 @@ target:
339b} 339b}
340' 340'
341 341
342# POSIX 202X permits additional characters in macro and target names
343testing "make allow - and / in target names, - in macro names" \
344 "make -f -" \
345 "/hello\nhel-lo\nmac-ro\n" "" '
346target: ./hello hel-lo
347 @echo $(mac-ro)
348./hello:
349 @echo /hello
350hel-lo:
351 @echo hel-lo
352mac-ro = mac-ro
353'
354
342testing "make double-colon rule" \ 355testing "make double-colon rule" \
343 "make -f -" "target1\ntarget2\n" "" ' 356 "make -f -" "target1\ntarget2\n" "" '
344target:: 357target::