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:
2dea01c
)
fix grep test false positive
author
Denis Vlasenko
<vda.linux@googlemail.com>
Fri, 2 May 2008 12:34:59 +0000
(12:34 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Fri, 2 May 2008 12:34:59 +0000
(12:34 -0000)
testsuite/grep.tests
patch
|
blob
|
history
diff --git
a/testsuite/grep.tests
b/testsuite/grep.tests
index bb682dba4cc001fb0fd3aa4c5136e286b020f8f7..4703ae50bf6ae1d73d5441ea90e356287b07ca3d 100755
(executable)
--- a/
testsuite/grep.tests
+++ b/
testsuite/grep.tests
@@
-26,7
+26,9
@@
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" ""
+# GNU grep (version?) outputs a new line character after the located string
+# even if there is no new line character in the input
+testing "grep (no newline at EOL)" "grep bug input" "bug\n" "bug" ""
>empty
testing "grep two files" "grep two input empty 2>/dev/null" \