From a43df64eec6d02812b40d7e01edbeb47539866db Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 9 Aug 2009 22:06:56 +0200 Subject: tail: fix "tail +N file_shorter_than_N" Signed-off-by: Denys Vlasenko --- testsuite/tail.tests | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 testsuite/tail.tests (limited to 'testsuite') diff --git a/testsuite/tail.tests b/testsuite/tail.tests new file mode 100755 index 000000000..d97bf7bbe --- /dev/null +++ b/testsuite/tail.tests @@ -0,0 +1,17 @@ +#!/bin/sh + +# Copyright 2009 by Denys Vlasenko +# Licensed under GPL v2, see file LICENSE for details. + +. testing.sh + +# testing "test name" "command" "expected result" "file input" "stdin" +# file input will be file called "input" +# test can create a file "actual" instead of writing to stdout + +testing "tail: +N with N > file length" \ + "tail -c +55 2>&1; echo \$?" \ + "0\n" \ + "" "qw" + +exit $FAILCOUNT -- cgit v1.2.3