From aaa24e09f98f2694f25abb08cee1a74d7f114b7f Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 13 Jun 2010 12:43:54 +0200 Subject: xargs: fix accounting of -sNUM Signed-off-by: Denys Vlasenko --- testsuite/xargs.tests | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'testsuite/xargs.tests') 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)" \ "" "a\n_\nb\n" testing "xargs -s7 can take one-char input" \ - "xargs -s7" \ + "xargs -s7 echo" \ "a\n" \ "" "a\n" +testing "xargs -sNUM test 1" \ + "xargs -ts25 echo 2>&1 >/dev/null" \ + "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" \ + "" "1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 00\n" + +testing "xargs -sNUM test 2" \ + "xargs -ts25 echo 1 2>&1 >/dev/null" \ + "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" \ + "" "2 3 4 5 6 7 8 9 0 2 3 4 5 6 7 8 9 00\n" + exit $FAILCOUNT -- cgit v1.2.3