aboutsummaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test')
-rwxr-xr-xscripts/test/sort.test2
-rwxr-xr-xscripts/test/tail.test3
2 files changed, 4 insertions, 1 deletions
diff --git a/scripts/test/sort.test b/scripts/test/sort.test
index 6449e499..7bd413f7 100755
--- a/scripts/test/sort.test
+++ b/scripts/test/sort.test
@@ -97,4 +97,4 @@ testing "sort -g" "sort -g" \
"bork\nNaN\n-inf\n0.4\n1.222\n01.37\n2.1\n+infinity\n" "" \
"01.37\n1.222\n2.1\n0.4\nNaN\nbork\n-inf\n+infinity\n"
-exit $FAILCOUNT
+
diff --git a/scripts/test/tail.test b/scripts/test/tail.test
index 2c8f3c2d..77e572e1 100755
--- a/scripts/test/tail.test
+++ b/scripts/test/tail.test
@@ -22,6 +22,9 @@ testing "tail -c+ in bounds" "tail -c +27 file1" \
testing "tail -c+ out of bonds" "tail -c +999 file1" "" "" ""
rm file1
+testing "tail stdin no trailing newline" "tail -n 1 - " "c" "" "a\nb\nc"
+testing "tail file no trailing newline" "tail -n 1 input" "c" "a\nb\nc" ""
+
optional TAIL_SEEK
testing "tail noseek -n in bounds" "tail -n 3" "nine\nten\neleven\n" \
"" "$BIGTEST"