From 6da9b00f4fb54b3deba1c2636d69950fdbcc0d67 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 2 May 2008 12:34:59 +0000 Subject: fix grep test false positive --- testsuite/grep.tests | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'testsuite/grep.tests') 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" "" \ 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" \ -- cgit v1.2.3