mirror of
https://https.git.savannah.gnu.org/git/grep.git
synced 2026-01-26 15:39:06 +00:00
tests/grep-dir: port to Solaris 10
* tests/grep-dir: Port to Solaris 10 'cat', which exits with status 0 even after 'read' fails from a directory.
This commit is contained in:
parent
f2751efd87
commit
b98d59aa1a
@ -6,7 +6,7 @@ mkdir a || framework_failure
|
||||
|
||||
# Lower and upper bound of valid exit status for "grep -f DIR",
|
||||
# when reading from empty and nonempty files, respectively.
|
||||
if cat a >/dev/null 2>&1; then
|
||||
if cat a >acopy 2>&1 && cmp a acopy; then
|
||||
l=1 u=1 L=0 U=1
|
||||
else
|
||||
l=2 u=127 L=2 U=127
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user