regress/infra-unittests: add more tests for subst.mk
Having quotes around the sed commands does not change their meaning. These quotes must not lead to syntax errors when parsing the shell command. This happened in mk/subst.mk r1.91 because the double quote was accidentally escaped.
This commit is contained in:
parent
73d508ad25
commit
f7a84dcc8b
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
#! /bin/sh
|
||||
# $NetBSD: subst.sh,v 1.30 2020/05/02 05:52:09 rillig Exp $
|
||||
# $NetBSD: subst.sh,v 1.31 2020/05/02 06:48:59 rillig Exp $
|
||||
#
|
||||
# Tests for mk/subst.mk.
|
||||
#
|
||||
|
@ -1222,6 +1222,8 @@ if test_case_begin "identity substitution, found in file"; then
|
|||
'SUBST_CLASSES+= id' \
|
||||
'SUBST_FILES.id= file' \
|
||||
'SUBST_SED.id= -e s,before,before,' \
|
||||
'SUBST_SED.id+= -e "s,before,before,"' \
|
||||
"SUBST_SED.id+= -e 's,before,before,'" \
|
||||
'SUBST_NOOP_OK.id= no' \
|
||||
'' \
|
||||
'.include "prepare-subst.mk"' \
|
||||
|
|
Loading…
Reference in a new issue