diff options
Diffstat (limited to 'regress/make-shell')
-rw-r--r-- | regress/make-shell/Makefile | 11 |
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" |