← Commit list

6da9b00f4

Denis Vlasenko
Denis Vlasenko
2008-05-02
FAILED Duration: 26s

Subject

fix grep test false positive

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

testsuite/grep.tests+3 -1
@@ -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" \