From 60da2d0b043a23303f052038ea83a933c2f80eb5 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 4 May 2016 18:25:41 -0700 Subject: "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. --- tests/top.test | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 tests/top.test (limited to 'tests') 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" "" "" -- cgit v1.2.3