[sword-devel] BUG: libSword hangs again

Bobby Nations sword-devel@crosswire.org
Wed, 31 Jul 2002 19:22:03 -0500


Troy,

These small programs would be great candidates for unit tests for each 
of these bugs.  I've used CppUnit before and could start setting them up 
if you'd like.  That way, we could begin accumulating a suite of test 
cases that could be the basis for future regression test checkpoints.

Cheers,

Bobby


Troy A. Griffitts wrote:
> ok, this should be fixed.
> 
> porton@narod.ru wrote:
> 
>> Now libSword hangs on the following test:
>>
>> #include <iostream>
>> #include <rawld.h>
>>
>> void main(int argc, char **argv)
>> {
>>     RawLD::createModule("tmp/lextest");
>>     RawLD lex("tmp/lextest");
>>
>>     lex.SetKey("a");
>>     lex << "x";
>>
>>     lex.SetKey("a");
>>     lex.deleteEntry();
>>     
>>     lex.SetKey("a");
>>     lex << "y";
>>
>>     lex = BOTTOM;
>> }
>>
> 
> 
> 
> 
>