pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/regress/infra-unittests



Module Name:    pkgsrc
Committed By:   rillig
Date:           Sat May  2 06:48:59 UTC 2020

Modified Files:
        pkgsrc/regress/infra-unittests: subst.sh

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 pkgsrc/regress/infra-unittests/subst.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/regress/infra-unittests/subst.sh
diff -u pkgsrc/regress/infra-unittests/subst.sh:1.30 pkgsrc/regress/infra-unittests/subst.sh:1.31
--- pkgsrc/regress/infra-unittests/subst.sh:1.30        Sat May  2 05:52:09 2020
+++ pkgsrc/regress/infra-unittests/subst.sh     Sat May  2 06:48:59 2020
@@ -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 substitutio
                '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"' \



Home | Main Index | Thread Index | Old Index