From cd7f4d27a2ccda62c3cd41c980a75a1aa59d8534 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 24 May 2007 13:22:01 +0000 Subject: hush: improve 2 testsuite tests --- shell/hush_test/hush-misc/shift.right | 6 +++++- shell/hush_test/hush-misc/shift.tests | 10 +++++++++- shell/hush_test/hush-misc/syntax_err.right | 1 + shell/hush_test/hush-misc/syntax_err.tests | 2 ++ 4 files changed, 17 insertions(+), 2 deletions(-) (limited to 'shell') diff --git a/shell/hush_test/hush-misc/shift.right b/shell/hush_test/hush-misc/shift.right index afb90be9c..d281e358c 100644 --- a/shell/hush_test/hush-misc/shift.right +++ b/shell/hush_test/hush-misc/shift.right @@ -1,2 +1,6 @@ ./shift.tests abc d e -./shift.tests d e +./shift.tests d e 123 +./shift.tests d e 123 +./shift.tests +./shift.tests +./shift.tests diff --git a/shell/hush_test/hush-misc/shift.tests b/shell/hush_test/hush-misc/shift.tests index 17f2c9f36..53ef249f2 100755 --- a/shell/hush_test/hush-misc/shift.tests +++ b/shell/hush_test/hush-misc/shift.tests @@ -1,6 +1,14 @@ if test $# = 0; then - exec "$THIS_SH" $0 abc "d e" + exec "$THIS_SH" $0 abc "d e" 123 fi echo $0 $1 $2 shift echo $0 $1 $2 +shift 999 +echo $0 $1 $2 +shift 2 +echo $0 $1 $2 +shift 2 +echo $0 $1 $2 +shift +echo $0 $1 $2 diff --git a/shell/hush_test/hush-misc/syntax_err.right b/shell/hush_test/hush-misc/syntax_err.right index fbf3c9f82..08a270c31 100644 --- a/shell/hush_test/hush-misc/syntax_err.right +++ b/shell/hush_test/hush-misc/syntax_err.right @@ -1 +1,2 @@ +shown hush: syntax error: unterminated ' diff --git a/shell/hush_test/hush-misc/syntax_err.tests b/shell/hush_test/hush-misc/syntax_err.tests index c990c6475..d10ed42e9 100755 --- a/shell/hush_test/hush-misc/syntax_err.tests +++ b/shell/hush_test/hush-misc/syntax_err.tests @@ -1 +1,3 @@ +echo shown echo test `echo 'aa` +echo not shown -- cgit v1.2.3