Skip to content

Commit

Permalink
regress/buildlink-transform: fix quoted-arg test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rillig committed Nov 24, 2024
1 parent 1d9f658 commit 70f2987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions regress/buildlink-transform/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.23 2024/11/24 08:34:45 rillig Exp $
# $NetBSD: Makefile,v 1.24 2024/11/24 08:58:29 rillig Exp $
#
# Run many buildlink transform tests in a single regression test to avoid
# having to keep creating the wrapper scripts over and over again.
Expand Down Expand Up @@ -78,7 +78,7 @@ TEST_RESULT= runtest=`${SETENV} ${REGRESS_ENV} regress $$test`; \
${ECHO} "(${.TARGET}) got: $$runtest"; \
${ECHO} "(${.TARGET}) expected: $$expected"; \
case $$runtest in \
$$expected) \
$$expected | "$$expected") \
${ECHO} "(${.TARGET}) result: PASS"; \
${ECHO} "${.TARGET}" >> ${PASSED_TESTS}; \
;; \
Expand Down

0 comments on commit 70f2987

Please sign in to comment.