diff options
author | Elliott Hughes <enh@google.com> | 2019-04-26 10:11:47 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-04-26 15:17:23 -0500 |
commit | bd6e9d030cbf709d40fb480449de200d49449dc8 (patch) | |
tree | dfefc6803839011b3b1f92c35b0131f51d25b1ae /tests | |
parent | 81220b8090cc02158510fc6557b9cfd72e21f56a (diff) | |
download | toybox-bd6e9d030cbf709d40fb480449de200d49449dc8.tar.gz |
more: better behavior with directories.
Also fix the non-tty output.
Also tweak our output so the tests pass with TEST_HOST=1 too.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/more.test | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/more.test b/tests/more.test index 4dcf6d85..ac701f77 100644 --- a/tests/more.test +++ b/tests/more.test @@ -9,6 +9,9 @@ line1 line2 EOF -testing "non-tty" "more file1 | cat -" "line1\nline2\n" "" "" +# For non-tty output, headers are shown even if there's only one file. +testing "non-tty" "more file1 | cat -" "::::::::::::::\nfile1\n::::::::::::::\nline1\nline2\n" "" "" + +testing "directory" "more ." "\n*** .: directory ***\n\n" "" "" rm file1 |