Source-Changes-HG archive

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

[src/trunk]: src/tests/bin/sh Add 3 new subtests to the shell_params test cas...



details:   https://anonhg.NetBSD.org/src/rev/c10f9955caf2
branches:  trunk
changeset: 354037:c10f9955caf2
user:      kre <kre%NetBSD.org@localhost>
date:      Fri Jun 02 01:48:13 2017 +0000

description:
Add 3 new subtests to the shell_params test case.   These test currently
broken behaviour (so for now, 3 of 15 subtests will fail).   This will
be corrected later today.

diffstat:

 tests/bin/sh/t_expand.sh |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 4646f5f3c890 -r c10f9955caf2 tests/bin/sh/t_expand.sh
--- a/tests/bin/sh/t_expand.sh  Fri Jun 02 01:45:06 2017 +0000
+++ b/tests/bin/sh/t_expand.sh  Fri Jun 02 01:48:13 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_expand.sh,v 1.14 2017/05/29 22:27:47 kre Exp $
+# $NetBSD: t_expand.sh,v 1.15 2017/06/02 01:48:13 kre Exp $
 #
 # Copyright (c) 2007, 2009 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -418,6 +418,11 @@
               'abab?cbb:bab?cbb+abab?cb-b?cbb_a%bab?cbb=abab?cb/abab' 0
        check 'set -- a "" c "" e; echo "${2:=b}"' '' 1
 
+       check 'set -- a b c d; echo ${4294967297}' '' 0  # result 'a' => ${1}
+       check 'set -- a b c; echo ${01}' 'a' 0
+       check "${TEST_SH} -c 'echo 0=\${00} 1=\${01} 2=\${02}' a b c" \
+                       '0=a 1=b 2=c' 0
+
        results
 }
 



Home | Main Index | Thread Index | Old Index