Mercurial > hg > octave-jordi > gnulib-hg
view tests/havelib/rpath-1 @ 17921:58c1b50299a6
getopt: give accurate ambiguity diagnostic on mem exhaustion
* lib/getopt.c (_getopt_internal_r): The previous commit broke
out the loop too early, which could give a false indication
of ambiguous options under memory exhaustion.
author | Pádraig Brady <P@draigBrady.com> |
---|---|
date | Wed, 18 Feb 2015 22:37:31 +0000 |
parents | 9bcc8c4d90d6 |
children |
line wrap: on
line source
# Common portion of all rpath-1* tests. tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 builddir=`pwd` global_top_auxdir=`cd "$top_srcdir"/build-aux && pwd` export global_top_auxdir tstdir='tst/dir' test -d $tstdir || { mkdir tst && mkdir $tstdir; } tmpfiles="$tmpfiles $rp-prefix" rm -rf $rp-prefix mkdir $rp-prefix tmpfiles="$tmpfiles $tstdir/$rp-build1" rm -rf $tstdir/$rp-build1 mkdir $tstdir/$rp-build1 (cd $srcdir/rpathx && tar cf - *) | (cd $tstdir/$rp-build1 && tar xf -) (cd $tstdir/$rp-build1 ${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1 make > make.log 2>&1 make install > install.log 2>&1 ) tmpfiles="$tmpfiles $tstdir/$rp-build2" rm -rf $tstdir/$rp-build2 mkdir $tstdir/$rp-build2 (cd $srcdir/rpathlx && tar cf - *) | (cd $tstdir/$rp-build2 && tar xf -) (cd $tstdir/$rp-build2 ${CONFIG_SHELL-/bin/sh} ./configure --prefix=$builddir/$rp-prefix --libdir=$builddir/$rp-prefix/$LIBDIRSTEM > configure.log 2>&1 make > make.log 2>&1 make check >> make.log ) result=$? rm -rf $tmpfiles exit $result