aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-05-24 12:57:43 +0100
committerRon Yorston <rmy@pobox.com>2024-05-24 12:57:43 +0100
commit8c847995faf850c9dab590d7c4d1600f4d1406cf (patch)
tree442b3709c73709c4afb31b28c588d644f313ceeb
parent8248785e1d70b5365e2fc17e17dc2ba861c88dd1 (diff)
downloadbusybox-w32-8c847995faf850c9dab590d7c4d1600f4d1406cf.tar.gz
busybox-w32-8c847995faf850c9dab590d7c4d1600f4d1406cf.tar.bz2
busybox-w32-8c847995faf850c9dab590d7c4d1600f4d1406cf.zip
make: fix tests for BSD
A couple of tests require backslashes to be escaped. The test for CURDIR should use 'pwd -P' to resolve symlinks.
-rwxr-xr-xtestsuite/make.tests8
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/make.tests b/testsuite/make.tests
index ba3855973..33e730602 100755
--- a/testsuite/make.tests
+++ b/testsuite/make.tests
@@ -370,10 +370,10 @@ testing "make replace escaped NL in macro in command with space" \
370 "make -f -" \ 370 "make -f -" \
371 "a b a b\n" "" ' 371 "a b a b\n" "" '
372M=word 372M=word
373N=${M:word=a\ 373N=${M:word=a\\
374b} 374b}
375target: 375target:
376 @echo ${N} ${M:word=a\ 376 @echo ${N} ${M:word=a\\
377b} 377b}
378' 378'
379 379
@@ -382,7 +382,7 @@ testing "make CURDIR macro" \
382 "make -f -" \ 382 "make -f -" \
383 "OK\n" "" ' 383 "OK\n" "" '
384target: 384target:
385 @test "$(CURDIR)" = "$$(pwd)" && echo OK 385 @test "$(CURDIR)" = "$$(pwd -P)" && echo OK
386' 386'
387# The CURDIR environment variable doesn't affect the macro 387# The CURDIR environment variable doesn't affect the macro
388export CURDIR=/you/are/here 388export CURDIR=/you/are/here
@@ -488,7 +488,7 @@ target:
488testing "make backslash-escaped hash isn't a comment" \ 488testing "make backslash-escaped hash isn't a comment" \
489 "make -f -" \ 489 "make -f -" \
490 ": hash # hash\n" "" ' 490 ": hash # hash\n" "" '
491hash = \# 491hash = \\#
492target: 492target:
493 : hash $(hash) hash 493 : hash $(hash) hash
494' 494'