summaryrefslogtreecommitdiff
path: root/tests/grep-dev-null-out
blob: 397a3f1748d7226d2b0ff9a0a89c99a06cff7382 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# Outputting to /dev/null.

. "${srcdir=.}/init.sh"; path_prepend_ ../src

require_timeout_

${AWK-awk} 'BEGIN {while (1) print "x"}' </dev/null |
  returns_ 124 timeout 10 grep x >/dev/null || fail=1

echo abc | grep b >>/dev/null || fail=1

Exit $fail