summaryrefslogtreecommitdiff
path: root/regress/make-shell
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2020-05-01 19:28:15 +0000
committerrillig <rillig@pkgsrc.org>2020-05-01 19:28:15 +0000
commiteb15b039db217e67819a159755df79643327568d (patch)
treec0cbb1681e74d0489227b92e1be93eaf1b30848b /regress/make-shell
parente21f6abdca8705f7303ba3958d49a1a1ec849707 (diff)
downloadpkgsrc-eb15b039db217e67819a159755df79643327568d.tar.gz
regress/make-shell: add another test case for broken Solaris /bin/sh
Diffstat (limited to 'regress/make-shell')
-rw-r--r--regress/make-shell/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/regress/make-shell/Makefile b/regress/make-shell/Makefile
index c68c142f0f6..daa358dc47e 100644
--- a/regress/make-shell/Makefile
+++ b/regress/make-shell/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/05/01 19:16:47 rillig Exp $
+# $NetBSD: Makefile,v 1.2 2020/05/01 19:28:15 rillig Exp $
#
# This regression test demonstrates which features are supported by the
# shell that is used internally by devel/bmake. That shell may be
@@ -29,4 +29,13 @@ do-regress:
${RUN} path="1/2/3/4"; one=$${path%%/*}
${RUN} path="1/2/3/4"; four=$${path##*/}
+ # The Solaris /bin/sh exits with an error in this situation,
+ # even though there is an "if" around the "cd".
+ ${RUN} \
+ if cd /bddc80cd-760f-46e7-955c-e767772d57f5 2>/dev/null; then \
+ ${FAIL_MSG} "cd unexpectedly succeeded"; \
+ else \
+ : "That's expected"; \
+ fi
+
.include "../../mk/bsd.pkg.mk"