diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-02 12:34:59 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-02 12:34:59 +0000 |
commit | 6da9b00f4fb54b3deba1c2636d69950fdbcc0d67 (patch) | |
tree | 320958772d2abfb6ce516bfca5cd4837e64b1c77 | |
parent | 2dea01ca11b084641d912de8632c42df0d2734cd (diff) | |
download | busybox-w32-6da9b00f4fb54b3deba1c2636d69950fdbcc0d67.tar.gz busybox-w32-6da9b00f4fb54b3deba1c2636d69950fdbcc0d67.tar.bz2 busybox-w32-6da9b00f4fb54b3deba1c2636d69950fdbcc0d67.zip |
fix grep test false positive
-rwxr-xr-x | testsuite/grep.tests | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuite/grep.tests b/testsuite/grep.tests index bb682dba4..4703ae50b 100755 --- a/testsuite/grep.tests +++ b/testsuite/grep.tests | |||
@@ -26,7 +26,9 @@ testing "grep - (specify stdin)" "grep two -" "two\n" "" \ | |||
26 | testing "grep input (specify file)" "grep two input" "two\n" \ | 26 | testing "grep input (specify file)" "grep two input" "two\n" \ |
27 | "one\ntwo\nthree\nthree\nthree\n" "" | 27 | "one\ntwo\nthree\nthree\nthree\n" "" |
28 | 28 | ||
29 | testing "grep (no newline at EOL)" "grep bug" "bug" "bug" "" | 29 | # GNU grep (version?) outputs a new line character after the located string |
30 | # even if there is no new line character in the input | ||
31 | testing "grep (no newline at EOL)" "grep bug input" "bug\n" "bug" "" | ||
30 | 32 | ||
31 | >empty | 33 | >empty |
32 | testing "grep two files" "grep two input empty 2>/dev/null" \ | 34 | testing "grep two files" "grep two input empty 2>/dev/null" \ |