aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-04-26 10:11:47 -0700
committerRob Landley <rob@landley.net>2019-04-26 15:17:23 -0500
commitbd6e9d030cbf709d40fb480449de200d49449dc8 (patch)
treedfefc6803839011b3b1f92c35b0131f51d25b1ae /tests
parent81220b8090cc02158510fc6557b9cfd72e21f56a (diff)
downloadtoybox-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.test5
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