[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [PATCH 2/2] tests: Add a test for grep -f with empty file
From:       "Lauri Kasanen" <curaga () operamail ! com>
Date:       2011-08-23 9:16:40
Message-ID: 1314091000.11464.140258132699349 () webmail ! messagingengine ! com
[Download RAW message or body]

A test for this case, resend with patch.

- Lauri

-- 
http://www.fastmail.fm - Does exactly what it says on the tin


["0002-tests-Add-a-test-for-grep-f-with-empty-file.patch" (0002-tests-Add-a-test-for-grep-f-with-empty-file.patch)]

From 3ef87baf86c51120d4bdb3ef40cdb1f9bf7508cf Mon Sep 17 00:00:00 2001
From: Lauri Kasanen <curaga@operamail.com>
Date: Tue, 23 Aug 2011 11:44:04 +0300
Subject: [PATCH 2/2] tests: Add a test for grep -f with empty file


Signed-off-by: Lauri Kasanen <curaga@operamail.com>
---
 testsuite/grep.tests |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/testsuite/grep.tests b/testsuite/grep.tests
index ffce033..c7f412e 100755
--- a/testsuite/grep.tests
+++ b/testsuite/grep.tests
@@ -103,4 +103,8 @@ testing "grep -o does not loop forever on zero-length match" \
 	"" \
 	"" "test\n"
 
+> empty
+testing "grep -f with an empty file" "grep -v -f empty" "test\n" "" "test\n"
+rm empty
+
 exit $FAILCOUNT
-- 
1.7.2.1



_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic