Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/regress/make-shell regress/make-shell: add another tes...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0f7f1bb3a1a4
branches:  trunk
changeset: 430531:0f7f1bb3a1a4
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri May 01 19:28:15 2020 +0000

description:
regress/make-shell: add another test case for broken Solaris /bin/sh

diffstat:

 regress/make-shell/Makefile |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 002c994038d5 -r 0f7f1bb3a1a4 regress/make-shell/Makefile
--- a/regress/make-shell/Makefile       Fri May 01 19:16:47 2020 +0000
+++ b/regress/make-shell/Makefile       Fri May 01 19:28:15 2020 +0000
@@ -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 @@
        ${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"



Home | Main Index | Thread Index | Old Index