[cvs] SF.net SVN: bogofilter: [6710] trunk/bogofilter/src/tests/t.valgrind
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2008-04-16 22:59:40
|
Revision: 6710 http://bogofilter.svn.sourceforge.net/bogofilter/?rev=6710&view=rev Author: relson Date: 2008-04-16 15:59:46 -0700 (Wed, 16 Apr 2008) Log Message: ----------- Add missing quote and use proper name for .suppress file. Modified Paths: -------------- trunk/bogofilter/src/tests/t.valgrind Modified: trunk/bogofilter/src/tests/t.valgrind =================================================================== --- trunk/bogofilter/src/tests/t.valgrind 2008-04-04 11:09:21 UTC (rev 6709) +++ trunk/bogofilter/src/tests/t.valgrind 2008-04-16 22:59:46 UTC (rev 6710) @@ -18,9 +18,11 @@ case `valgrind --version` in valgrind-3*) - VALGRIND="$VALGRIND 3>$TMPDIR"/vg.out --log-fd=3 + VG_SUPP="$TMPDIR"/.valgrind.suppress + VALGRIND="$VALGRIND 3>$TMPDIR/vg.out --log-fd=3" ;; valgrind-2*) + VG_SUPP="$TMPDIR"/vg.supp VALGRIND="$VALGRIND 3>$TMPDIR/vg.out --logfile-fd=3" ;; *) @@ -49,8 +51,6 @@ # suppress valgrind complaints about glibc::strchr.S -VG_SUPP="$TMPDIR"/vg.supp - cat <<EOF > "$VG_SUPP" { ignore strchr problem @@ -69,11 +69,11 @@ if [ -n "$V" ] ; then OT="$OT.$V" ; fi OPTS="-e -t $V $CFG" eval $VALGRIND --suppressions=${VG_SUPP} $BOGOFILTER $OPTS < $IN > $OT - if test -s $TMPDIR"/vg.out ; then cat $TMPDIR/vg.out ; exit 2 ; fi + if test -s "$TMPDIR"/vg.out ; then cat "$TMPDIR"/vg.out ; exit 2 ; fi } for mth in f t ; do - BOGOFILTER_DIR=$TMPDIR/words.$mth" + BOGOFILTER_DIR="$TMPDIR"/words.$mth CFG="-y 0" export BOGOFILTER_DIR if [ -d $BOGOFILTER_DIR ] ; then rm -f $BOGOFILTER_DIR/* ; else : ; fi This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |