apply all post 1.10.0 fixes
[oweals/busybox.git] / testsuite / tail / tail-n-works
index 27a905f88e63abc62f65691bb345d487622e9943..e5b260caf57773d17ad14a191deeb52823c755be 100644 (file)
@@ -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