bogofilter 0.91.4 "make check" fails on Solaris 8

Matt Christian mattc at visi.com
Tue Jun 22 23:18:47 CEST 2004


Hi,

Bogofilter 0.91.4 "make check" fails on Solaris 8 because of a failed
trap command in src/tests/t.lock3.

My current guess is that the issue stems from the combination of using
/bin/sh in t.lock3 and /usr/xpg4/bin/sh elsewhere in the tests and the
different traps of these sh versions.

(from bogofilter-0.91.4 source directory)
$ make check

PASS: t.lock1
# 15784 words, 48 messages
# 9287 words, 21 messages
#### Part 1 ####
#### Part 2 ####
./t.lock3[46]: --:  not found
FAIL: t.lock3
SKIP: t.valgrind
======================
1 of 34 tests failed
(1 tests were not run)
======================
make[5]: *** [check-TESTS] Error 1


src/tests/t.lock3 :

wait
pid=

trap - 1 2 3
. $TMPDIR/oldtraps         <--- line 46



src/tests/t.frame :

# Cater for Solaris "compatibility"
case $PATH in
*/usr/xpg4/bin:*) ;;
*)
    if test -d /usr/xpg4/bin ; then
        PATH=/usr/xpg4/bin:$PATH
        export PATH
    fi
    ;;
esac


$ uname -a
SunOS hostname 5.8 Generic_108528-19 sun4u sparc


trap examples:

$ /usr/xpg4/bin/sh
$ trap "echo 'test'" 0
$ trap
trap -- 'echo '\''test'\''' EXIT
$ exit
test

$ /bin/sh
$ trap "echo 'test'" 0
$ trap
0: echo 'test'
$ exit
test


I hacked on src/tests/t.lock3 and src/tests/t.frame for a while but
couldn't find a solution.  Ideas?

Thanks,

Matt

-- 
Matt Christian  mattc at visi.com  Learn to love and love to learn.
http://www.visi.com/~mattc/ 0111 ftp://ftp.visi.com/users/mattc/
5468652073656372657420697320131b331b2e1b311b341b311b351b39110d0a



More information about the Bogofilter mailing list