diff options
author | Denys Vlasenko | 2018-04-29 14:05:43 +0200 |
---|---|---|
committer | Denys Vlasenko | 2018-04-29 14:05:43 +0200 |
commit | d80eecb86812c1fbda652f9b995060c26ba0b155 (patch) | |
tree | 90b1282970b7af2e1adcf235702dead15f156bb0 /testsuite | |
parent | bc2e70b4a25e58264cdc236803c32f5a9a0c7e4c (diff) | |
download | busybox-d80eecb86812c1fbda652f9b995060c26ba0b155.zip busybox-d80eecb86812c1fbda652f9b995060c26ba0b155.tar.gz |
cat: fix cat -e and cat -v erroneously numbering 1st line
function old new delta
cat_main 418 421 +3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/cat.tests | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/cat.tests b/testsuite/cat.tests new file mode 100755 index 0000000..404ebed --- /dev/null +++ b/testsuite/cat.tests @@ -0,0 +1,21 @@ +#!/bin/sh + +# Copyright 2018 by Denys Vlasenko <vda.linux@googlemail.com> +# Licensed under GPLv2, see file LICENSE in this source tree. + +. ./testing.sh + +# testing "description" "command" "result" "infile" "stdin" +testing 'cat -e' \ + 'cat -e' \ + 'foo$\n' \ + '' \ + 'foo\n' + +testing 'cat -v' \ + 'cat -v' \ + 'foo\n' \ + '' \ + 'foo\n' + +exit $FAILCOUNT |