- add testcase for grep bug (http://busybox.net/bugs/view.php?id=887)
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sun, 4 Jun 2006 18:40:48 +0000 (18:40 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sun, 4 Jun 2006 18:40:48 +0000 (18:40 -0000)
  The patch for bug #887 seems to work for me..

testsuite/grep.tests

index cc9520e90b9dd9be93ea9c294e91325e8c76b825..0654905d282bf7d889f244ab0023ab2cf8ba5509 100755 (executable)
@@ -27,6 +27,8 @@ testing "grep - (specify stdin)" "grep two -" "two\n" "" \
 testing "grep input (specify file)" "grep two input" "two\n" \
        "one\ntwo\nthree\nthree\nthree\n" ""
 
+testing "grep (no newline at EOL)" "grep bug" "bug" "bug" ""
+
 # Note that this assumes actual is empty.
 testing "grep input actual (two files)" "grep two input actual 2> /dev/null" \
        "input:two\n" "one\ntwo\nthree\nthree\nthree\n" ""