Hi, I have recently started writing a Haskell binding to Judy and have
run into some very strange behavior. While testing Judy1, I noticed a
large number of values were just disapearing, however, the library
passed 'make check'. looking at the Checkit script, it actually _always_
passes. here is a fix against 1.0.3 :
51,53c51,54
< if [ $? -ne 0 ] ; then
< echo "=== $? Failed: Judy1/JudyL/JudyHS validate program"
< exit $?
---
> RET=$?
> if [ $RET -ne 0 ] ; then
> echo "=== $RET Failed: Judy1/JudyL/JudyHS validate program"
> exit $RET
90,92c91,94
< if [ $? -ne 0 ] ; then
< echo "=== $? Failed: JudySL if StoreD numbers are all the same"
< exit $?
---
> RET=$?
> if [ $RET -ne 0 ] ; then
> echo "=== $RET Failed: JudySL if StoreD numbers are all the same"
> exit $RET
as you can see, the return value was getting overwritten by the [ ]
shell call, making it always exit 0, even on an error.
now here is the bug I don't know how to fix. this is on a plain old i386
box:
=== Pass: Compile of tests
Validate Judy1/JudyL/JudyHS functions (except Judy*ByCount)
Error: Judy1PrevEmpty Rcode != 1 = 0, file='Judy1LHCheck.c',
'function='TestJudyPrevEmpty', line 863
=== 1 Failed: Judy1/JudyL/JudyHS validate program
FAIL: Checkit
the error is not just spurious, I am getting bad results with my haskell
binding.
John
--
John Meacham - ⑆repetae.net⑆john⑈
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Judy-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/judy-devel