diff options
author | Elliott Hughes <enh@google.com> | 2016-05-04 18:25:41 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-05-05 00:52:15 -0500 |
commit | 60da2d0b043a23303f052038ea83a933c2f80eb5 (patch) | |
tree | 044da2078feed30109678e8b6e5927ba35eba6b5 /tests | |
parent | 676e1d93cf3943cbbe91a0fad9b319cff9b136b1 (diff) | |
download | toybox-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-x | tests/top.test | 7 |
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" "" "" |