Skip to content

Commit 70f2987

Browse files
committed
regress/buildlink-transform: fix quoted-arg test
In the shell command language, the 'case' statement applies different expansion rules to the subject and the patterns. In particular, the quotes are removed from the subject but not the patterns.
1 parent 1d9f658 commit 70f2987

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

regress/buildlink-transform/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: Makefile,v 1.23 2024/11/24 08:34:45 rillig Exp $
1+
# $NetBSD: Makefile,v 1.24 2024/11/24 08:58:29 rillig Exp $
22
#
33
# Run many buildlink transform tests in a single regression test to avoid
44
# having to keep creating the wrapper scripts over and over again.
@@ -78,7 +78,7 @@ TEST_RESULT= runtest=`${SETENV} ${REGRESS_ENV} regress $$test`; \
7878
${ECHO} "(${.TARGET}) got: $$runtest"; \
7979
${ECHO} "(${.TARGET}) expected: $$expected"; \
8080
case $$runtest in \
81-
$$expected) \
81+
$$expected | "$$expected") \
8282
${ECHO} "(${.TARGET}) result: PASS"; \
8383
${ECHO} "${.TARGET}" >> ${PASSED_TESTS}; \
8484
;; \

0 commit comments

Comments
 (0)