aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-05-04 18:25:41 -0700
committerRob Landley <rob@landley.net>2016-05-05 00:52:15 -0500
commit60da2d0b043a23303f052038ea83a933c2f80eb5 (patch)
tree044da2078feed30109678e8b6e5927ba35eba6b5 /tests
parent676e1d93cf3943cbbe91a0fad9b319cff9b136b1 (diff)
downloadtoybox-60da2d0b043a23303f052038ea83a933c2f80eb5.tar.gz
"top -b -n1" should end with a newline.
The use of TT.time to determine whether to use \r or \n is a little odd, but let's stick with that for now. Correct the spelling of millitime and add a test.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/top.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/top.test b/tests/top.test
new file mode 100755
index 00000000..11eea33b
--- /dev/null
+++ b/tests/top.test
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+[ -f testing.sh ] && . testing.sh
+
+#testing "name" "command" "result" "infile" "stdin"
+
+testing "batch termination" "top -b -n1 | tail -c 1" "\n" "" ""