From: Laurent Mazet Date: Fri, 10 May 2024 22:15:32 +0000 (+0200) Subject: correct tests X-Git-Tag: cmore-1.0~20 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=3f350dd63c0ca0b185f991efc1133a12fe4f2b35;p=cmore.git correct tests --- diff --git a/cmore.c b/cmore.c index 7d19206..609cf85 100644 --- a/cmore.c +++ b/cmore.c @@ -298,6 +298,8 @@ int main (int argc, char *argv[]) /* test: (sleep 1; echo -n q) | cmore.exe -c 'echo -n a; for i in $(seq 1 '$(( $COLUMNS*($LINES-4)-2 ))'); do echo -n .; done; echo -n z' -v 5 | grep -q 'last line too long' */ /* test: (sleep 1; echo -n q) | cmore.exe -c 'echo -n a; for i in $(seq 1 '$(( $COLUMNS*($LINES-4)-3 ))'); do echo -n .; done; echo -n z' -v 5 | grep -q 'last line too long'; test $? -eq 1 */ /* test: (sleep 1; echo :f; sleep 1; echo k) | cmore.exe -c 'ip addr' */ -/* test: (sleep 1; echo :fj; sleep 1; echo) | cmore.exe -c 'ip addr' */ +/* test: (sleep 1; echo :fkk) | cmore.exe -c 'ip addr' */ +/* test: (sleep 1; echo :fjjkk) | cmore.exe -c 'ip addr' */ +/* test: (sleep 1; echo :flk; sleep 1; echo xjk) | cmore.exe -c 'ip addr' */ /* vim: set ts=4 sw=4 et: */