diff options
author | Alain Magloire <alainm@rcsm.ee.mcgill.ca> | 1999-03-07 03:12:18 +0000 |
---|---|---|
committer | Alain Magloire <alainm@rcsm.ee.mcgill.ca> | 1999-03-07 03:12:18 +0000 |
commit | af7c52a1fd0b3f9aac1fe560c021551697dae6ef (patch) | |
tree | 50fa7ea1ef04bf376af1ce7eea0046a8e66f75d7 /bootstrap | |
parent | 2fa4d7a64f9e3de7bc37a3e380cec060e2fb6b1d (diff) | |
download | grep-af7c52a1fd0b3f9aac1fe560c021551697dae6ef.tar.gz |
changes for tests scripts.
typos.
Chnages from Andreas.
* tests/*.awk : Linux users are seeing "Broken Pipe" on make check.
The problem is that grep does not drain its stdin, thus the previous
process in the pipeline receives a SIGPIPE. Other shells are silent
about this. There is actually no failure, since the broken pipe is
expected. You can work around it by changing the pipeline, so that
the input is drained, like this:
status=`echo 'check' | { ${GREP} -E -e pattern >/dev/null 2>&1;
echo $?; cat >/dev/null; }`; if test $status -ne $errnu then ... fi
Excerpt from email exchange with Andreas Schwab.
Diffstat (limited to 'bootstrap')
-rw-r--r-- | bootstrap/Makefile.try | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bootstrap/Makefile.try b/bootstrap/Makefile.try index 5add0ddf..ece1a556 100644 --- a/bootstrap/Makefile.try +++ b/bootstrap/Makefile.try @@ -18,7 +18,7 @@ OBJS = alloca.$(OBJEXT) \ regex.$(OBJEXT) \ savedir.$(OBJEXT) \ search.$(OBJEXT) \ - stpcpy.$(OBJEXT) \ + stpcpy.$(OBJEXT) # Where is DIR and opendir/readdir defined. # or -DHAVE_DIRENT_H @@ -40,14 +40,15 @@ DEFS = -I. \ -Dsize_t=unsigned # SunOS-4.1.x k&r cc -DEFS = -DSTDC_HEADERS -DHAVE_MEMCHR -DHAVE_DIRENT_H -Dconst= +#DEFS = -DSTDC_HEADERS -DHAVE_MEMCHR -DHAVE_DIRENT_H -Dconst= # Solaris #DEFS = -DSTDC_HEADERS -DHAVE_MEMCHR -DHAVE_DIRENT_H -DHAVE_STRERROR # DOS/WIN (change also OBJEXT/EXEEXT, see above) # DJGPP: also add -DHAVE_UNISTD_H -DHAVE_SETMODE -DEFS = -DSTDC_HEADERS -DHAVE_MEMCHR -DHAVE_STRERROR -DHAVE_DIRENT_H -DHAVE_DOS_FILE_NAMES -DHAVE_UNISTD_H -DHAVE_SETMODE +DEFS = -DSTDC_HEADERS -DHAVE_MEMCHR -DHAVE_STRERROR -DHAVE_DIRENT_H \ + -DHAVE_DOS_FILE_NAMES -DHAVE_UNISTD_H -DHAVE_SETMODE #### |