test-book-merge fails in current HEAD

Derek Atkins warlord at MIT.EDU
Sat Dec 4 20:26:32 EST 2004


Neil,

I was playing with HEAD today trying to get the tests working.
test-book-merge is failing with the following:

FAILURE loop:#5 empty target entity test-book-merge.c:413 
FAIL: test-book-merge

I've traced it back to the following:

(gdb) p *rule
$3 = {mergeAbsolute = 0, difference = 6, updated = 1, 
  mergeType = 0x80bfd50 "book-merge-test", 
  mergeLabel = 0x804cd19 "Test Book Merge", mergeParam = 0x80c00f0, 
  linkedEntList = 0x0, mergeResult = MERGE_UPDATE, importEnt = 0x80bfde0, 
  targetEnt = 0x80bfe78}
(gdb) c
Continuing.

Breakpoint 1, test_rule_loop (rule=0x80c2468, remainder=1)
    at test-book-merge.c:413
413             do_test ((rule->targetEnt != NULL), "loop:#5 empty target entity");
(gdb) p *rule
$4 = {mergeAbsolute = 0, difference = 0, updated = 0, 
  mergeType = 0x80bfd50 "book-merge-test", 
  mergeLabel = 0x804cd19 "Test Book Merge", mergeParam = 0x80c00b0, 
  linkedEntList = 0x0, mergeResult = MERGE_NEW, importEnt = 0x80bfc98, 
  targetEnt = 0x0}
(gdb) bt
#0  test_rule_loop (rule=0x80c2468, remainder=1) at test-book-merge.c:413
#1  0x0804c0ab in qof_book_mergeRuleCB (lister=0x80c2468, arg=0xbfffe040)
    at qof_book_merge.c:612
#2  0x400c4f6e in g_list_foreach (list=0x80a67fc, 
    func=0x804c048 <qof_book_mergeRuleCB>, user_data=0xbfffe040) at glist.c:494
#3  0x0804b1e8 in qof_book_mergeRuleForeach (cb=0x19c, mergeResult=MERGE_NEW)
    at qof_book_merge.c:252
#4  0x0804a3ac in test_merge () at test-book-merge.c:355
#5  0x0804a9db in main_helper (closure=0x0, argc=1, argv=0xbfffe1e4)
    at test-book-merge.c:463
#6  0x40125d4f in scm_init_guile () from /usr/lib/libguile.so.12
#7  0x40125d0e in scm_init_guile () from /usr/lib/libguile.so.12
#8  0x401259e0 in scm_boot_guile () from /usr/lib/libguile.so.12
#9  0x0804aa0b in main (argc=1, argv=0xbfffe1e4) at test-book-merge.c:471
#10 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6
(gdb) 

Can you please look into this as a high priority?

Thanks,

-derek
-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list