diff options
author | Jim Meyering <jim@meyering.net> | 2003-06-27 07:51:30 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-06-27 07:51:30 +0000 |
commit | 0c2dd1fe0724315b2ebbf5ae8c8e6374e1886bd8 (patch) | |
tree | 90004555fb06566caa65115f0beee8bcb2822827 /tests | |
parent | d294e440c3792460b2d7343bb72c252ff89c25cf (diff) | |
download | coreutils-0c2dd1fe0724315b2ebbf5ae8c8e6374e1886bd8.tar.xz |
Also use --verbose and compare stderr output with what we'd expect.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/misc/split-a | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/tests/misc/split-a b/tests/misc/split-a index 1e0896849..c35cf35e0 100755 --- a/tests/misc/split-a +++ b/tests/misc/split-a @@ -35,10 +35,43 @@ test -f xaz && fail=1 rm -f x* # With a longer suffix, it must succeed. -split -b 1 -a 2 in 2> err || fail=1 +split --verbose -b 1 -a 2 in 2> err || fail=1 test -f xaa || fail=1 test -f xaz || fail=1 test -f xba || fail=1 test -f xbb && fail=1 +cat <<\EOF > exp +creating file `xaa' +creating file `xab' +creating file `xac' +creating file `xad' +creating file `xae' +creating file `xaf' +creating file `xag' +creating file `xah' +creating file `xai' +creating file `xaj' +creating file `xak' +creating file `xal' +creating file `xam' +creating file `xan' +creating file `xao' +creating file `xap' +creating file `xaq' +creating file `xar' +creating file `xas' +creating file `xat' +creating file `xau' +creating file `xav' +creating file `xaw' +creating file `xax' +creating file `xay' +creating file `xaz' +creating file `xba' +EOF + +cmp err exp || fail=1 +test $fail = 1 && diff err exp 2> /dev/null + (exit $fail); exit |