svn commit: trunk/busybox/shell/hush_test/hush-misc

vda at busybox.net vda at busybox.net
Thu May 24 13:22:02 UTC 2007


Author: vda
Date: 2007-05-24 06:22:01 -0700 (Thu, 24 May 2007)
New Revision: 18683

Log:
hush: improve 2 testsuite tests


Modified:
   trunk/busybox/shell/hush_test/hush-misc/shift.right
   trunk/busybox/shell/hush_test/hush-misc/shift.tests
   trunk/busybox/shell/hush_test/hush-misc/syntax_err.right
   trunk/busybox/shell/hush_test/hush-misc/syntax_err.tests


Changeset:
Modified: trunk/busybox/shell/hush_test/hush-misc/shift.right
===================================================================
--- trunk/busybox/shell/hush_test/hush-misc/shift.right	2007-05-24 12:26:39 UTC (rev 18682)
+++ trunk/busybox/shell/hush_test/hush-misc/shift.right	2007-05-24 13:22:01 UTC (rev 18683)
@@ -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

Modified: trunk/busybox/shell/hush_test/hush-misc/shift.tests
===================================================================
--- trunk/busybox/shell/hush_test/hush-misc/shift.tests	2007-05-24 12:26:39 UTC (rev 18682)
+++ trunk/busybox/shell/hush_test/hush-misc/shift.tests	2007-05-24 13:22:01 UTC (rev 18683)
@@ -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

Modified: trunk/busybox/shell/hush_test/hush-misc/syntax_err.right
===================================================================
--- trunk/busybox/shell/hush_test/hush-misc/syntax_err.right	2007-05-24 12:26:39 UTC (rev 18682)
+++ trunk/busybox/shell/hush_test/hush-misc/syntax_err.right	2007-05-24 13:22:01 UTC (rev 18683)
@@ -1 +1,2 @@
+shown
 hush: syntax error: unterminated '

Modified: trunk/busybox/shell/hush_test/hush-misc/syntax_err.tests
===================================================================
--- trunk/busybox/shell/hush_test/hush-misc/syntax_err.tests	2007-05-24 12:26:39 UTC (rev 18682)
+++ trunk/busybox/shell/hush_test/hush-misc/syntax_err.tests	2007-05-24 13:22:01 UTC (rev 18683)
@@ -1 +1,3 @@
+echo shown
 echo test `echo 'aa`
+echo not shown




More information about the busybox-cvs mailing list