aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-06-13 12:43:54 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-06-13 12:43:54 +0200
commitaaa24e09f98f2694f25abb08cee1a74d7f114b7f (patch)
tree8aef060e50ebf3d2852a881962f392589933c230 /testsuite
parent1613de85d9203fa8628569e8e722899b184b24d8 (diff)
downloadbusybox-w32-aaa24e09f98f2694f25abb08cee1a74d7f114b7f.tar.gz
busybox-w32-aaa24e09f98f2694f25abb08cee1a74d7f114b7f.tar.bz2
busybox-w32-aaa24e09f98f2694f25abb08cee1a74d7f114b7f.zip
xargs: fix accounting of -sNUM
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/xargs.tests12
1 files changed, 11 insertions, 1 deletions
diff --git a/testsuite/xargs.tests b/testsuite/xargs.tests
index c73363038..6463252bf 100755
--- a/testsuite/xargs.tests
+++ b/testsuite/xargs.tests
@@ -27,8 +27,18 @@ testing "xargs does not stop on underscore ('new' GNU behavior)" \
27 "" "a\n_\nb\n" 27 "" "a\n_\nb\n"
28 28
29testing "xargs -s7 can take one-char input" \ 29testing "xargs -s7 can take one-char input" \
30 "xargs -s7" \ 30 "xargs -s7 echo" \
31 "a\n" \ 31 "a\n" \
32 "" "a\n" 32 "" "a\n"
33 33
34testing "xargs -sNUM test 1" \
35 "xargs -ts25 echo 2>&1 >/dev/null" \
36 "echo 1 2 3 4 5 6 7 8 9 0\n""echo 1 2 3 4 5 6 7 8 9\n""echo 00\n" \
37 "" "1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 00\n"
38
39testing "xargs -sNUM test 2" \
40 "xargs -ts25 echo 1 2>&1 >/dev/null" \
41 "echo 1 2 3 4 5 6 7 8 9 0\n""echo 1 2 3 4 5 6 7 8 9\n""echo 1 00\n" \
42 "" "2 3 4 5 6 7 8 9 0 2 3 4 5 6 7 8 9 00\n"
43
34exit $FAILCOUNT 44exit $FAILCOUNT