12345678910111213141516171819202122232425 |
- #!/bin/sh
- # $Id: twofiles,v 1.4 2010-12-04 00:05:54 karl Exp $
- # Public domain. Test that an existing and nonexisting file doesn't cause a
- # segmentation fault.
- # Report from: Arkadiusz Miskiewicz, 15 Feb 2003 13:22:49 +0100.
- unset TEXINFO_OUTPUT LANG LANGUAGE
- LC_ALL=POSIX; export LC_ALL
- : ${srcdir=.}
- outfile=outfile
- errfile=errfile
- trap 'status=$?; rm -f $outfile $errfile && exit $status' 0
- ../makeinfo -o /dev/null $srcdir/html-min.txi /nonexistent.texinfo \
- >$outfile 2>$errfile
- exit_status=$?
- # we expect one error message about /nonexistent.texinfo and bad exit status.
- test $exit_status -ne 0 \
- && grep /nonexistent $errfile >/dev/null \
- && exit_status=0
- exit $exit_status
|