projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
213cc00
)
- add testcase for grep bug (http://busybox.net/bugs/view.php?id=887)
author
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Sun, 4 Jun 2006 18:40:48 +0000
(18:40 -0000)
committer
Bernhard 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
patch
|
blob
|
history
diff --git
a/testsuite/grep.tests
b/testsuite/grep.tests
index cc9520e90b9dd9be93ea9c294e91325e8c76b825..0654905d282bf7d889f244ab0023ab2cf8ba5509 100755
(executable)
--- a/
testsuite/grep.tests
+++ b/
testsuite/grep.tests
@@
-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" ""