diff options
author | rillig <rillig@pkgsrc.org> | 2020-05-16 12:43:10 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2020-05-16 12:43:10 +0000 |
commit | be99814e8743a88a2fc3ada0b65f92e5d01bd4a4 (patch) | |
tree | 4705b6c8ad3eebbcfc40ccc82fe3ce15133d8ccb /regress | |
parent | ce3748ad44a08c20046e5e86267bc723c17eb3eb (diff) | |
download | pkgsrc-be99814e8743a88a2fc3ada0b65f92e5d01bd4a4.tar.gz |
mk/subst.mk: properly detect s,a,a,1 as identity substitution
Seen in games/bastet. The 1 is not necessary though since it only
repeats the default behavior of sed.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/infra-unittests/subst.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/regress/infra-unittests/subst.sh b/regress/infra-unittests/subst.sh index 7c4885c97a4..8e92aa9e46d 100644 --- a/regress/infra-unittests/subst.sh +++ b/regress/infra-unittests/subst.sh @@ -1,5 +1,5 @@ #! /bin/sh -# $NetBSD: subst.sh,v 1.40 2020/05/12 05:34:04 rillig Exp $ +# $NetBSD: subst.sh,v 1.41 2020/05/16 12:43:10 rillig Exp $ # # Tests for mk/subst.mk. # @@ -1192,6 +1192,9 @@ if test_case_begin 'identity substitution implementation'; then assert_identity 'no' -e 's,^a,^a,' assert_identity 'no' -e 's,\(^aaa\)aaa,\(^aaa\)aaa,' + # Seen in games/bastet before 2020-05-16. + assert_identity 'yes' -e 's,a,a,1' + test_case_end fi |