From d9e0c438e10e2155513e5d26498af472c5137d65 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 20 Jan 2014 03:41:48 +0100 Subject: Apply post-1.22.0 patches, bump version to 1.22.1 Signed-off-by: Denys Vlasenko --- testsuite/grep.tests | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'testsuite') diff --git a/testsuite/grep.tests b/testsuite/grep.tests index 64d99a905..412efffbb 100755 --- a/testsuite/grep.tests +++ b/testsuite/grep.tests @@ -147,6 +147,18 @@ testing "grep -w doesn't stop on 1st mismatch" \ "foop foo\n" \ "" +testing "grep -w ^str doesn't match str not at the beginning" \ + "grep -w ^str input" \ + "" \ + "strstr\n" \ + "" + +testing "grep -w ^ doesn't hang" \ + "grep -w ^ input" \ + "" \ + "anything\n" \ + "" + # testing "test name" "commands" "expected result" "file input" "stdin" # file input will be file called "input" # test can create a file "actual" instead of writing to stdout -- cgit v1.2.3-55-g6feb