projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b6bbad
)
hush: improve 2 testsuite tests
author
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 24 May 2007 13:22:01 +0000
(13:22 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 24 May 2007 13:22:01 +0000
(13:22 -0000)
shell/hush_test/hush-misc/shift.right
patch
|
blob
|
history
shell/hush_test/hush-misc/shift.tests
patch
|
blob
|
history
shell/hush_test/hush-misc/syntax_err.right
patch
|
blob
|
history
shell/hush_test/hush-misc/syntax_err.tests
patch
|
blob
|
history
diff --git
a/shell/hush_test/hush-misc/shift.right
b/shell/hush_test/hush-misc/shift.right
index afb90be9cf323d57b4e9f5751fe883fb86286bb6..d281e358c4df6c5607238066d95b62e98e990928 100644
(file)
--- 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 17f2c9f3630bb9c0cd1684dd063b752953428018..53ef249f29404c5dea4e8938c0650421c52f0d63 100755
(executable)
--- 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 fbf3c9f8224662a778cbc17f8d433ed2902cd085..08a270c31947dc2e6b44133fe336614af5a80fff 100644
(file)
--- 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 c990c64759ee4971753c2e07cc4b8c33d0d5f2ec..d10ed42e91c815579d7ac1b5125adc50be0e42b9 100755
(executable)
--- 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