aboutsummaryrefslogtreecommitdiff
path: root/testsuite/tail/tail-works
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-03-23 03:28:40 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-03-23 03:28:40 +0000
commit69ca5a70fd4ae30f8a3beabec4d705f7dd32e3f3 (patch)
tree1939c21e008bb456049b186d8e3f61f41842b9e8 /testsuite/tail/tail-works
parentc8bac033f321d6077be35a6ce127b2587d096583 (diff)
downloadbusybox-69ca5a70fd4ae30f8a3beabec4d705f7dd32e3f3.tar.gz
tail: fix fallout from tail -c optimization
Diffstat (limited to 'testsuite/tail/tail-works')
-rw-r--r--testsuite/tail/tail-works8
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/tail/tail-works b/testsuite/tail/tail-works
index 27a905f88..64e6d88ab 100644
--- a/testsuite/tail/tail-works
+++ b/testsuite/tail/tail-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 -2 input > logfile.bb
+cmp logfile.ok logfile.bb