From 69ca5a70fd4ae30f8a3beabec4d705f7dd32e3f3 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 23 Mar 2008 03:28:40 +0000 Subject: tail: fix fallout from tail -c optimization --- testsuite/tail/tail-n-works | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'testsuite/tail/tail-n-works') diff --git a/testsuite/tail/tail-n-works b/testsuite/tail/tail-n-works index 27a905f..e5b260c 100644 --- a/testsuite/tail/tail-n-works +++ b/testsuite/tail/tail-n-works @@ -1,4 +1,4 @@ -[ -n "$d" ] || d=.. -tail -n 2 "$d/README" > logfile.gnu -busybox tail -n 2 "$d/README" > logfile.bb -cmp logfile.gnu logfile.bb +echo -ne "abc\ndef\n123\n" >input +echo -ne "def\n123\n" >logfile.ok +busybox tail -n 2 input > logfile.bb +cmp logfile.ok logfile.bb -- cgit v1.1