aboutsummaryrefslogtreecommitdiff
path: root/testsuite/grep.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/grep.tests')
-rwxr-xr-xtestsuite/grep.tests6
1 files changed, 5 insertions, 1 deletions
diff --git a/testsuite/grep.tests b/testsuite/grep.tests
index d4bf80d83..ffce033e6 100755
--- a/testsuite/grep.tests
+++ b/testsuite/grep.tests
@@ -1,7 +1,7 @@
1#!/bin/sh 1#!/bin/sh
2 2
3# Copyright 2005 by Rob Landley <rob@landley.net> 3# Copyright 2005 by Rob Landley <rob@landley.net>
4# Licensed under GPL v2, see file LICENSE for details. 4# Licensed under GPLv2, see file LICENSE in this source tree.
5 5
6# AUDIT: 6# AUDIT:
7 7
@@ -98,5 +98,9 @@ testing "grep -o does not loop forever" \
98 'grep -o "[^/]*$"' \ 98 'grep -o "[^/]*$"' \
99 "test\n" \ 99 "test\n" \
100 "" "/var/test\n" 100 "" "/var/test\n"
101testing "grep -o does not loop forever on zero-length match" \
102 'grep -o "" | head -n1' \
103 "" \
104 "" "test\n"
101 105
102exit $FAILCOUNT 106exit $FAILCOUNT