GHshTable is broken
Run attached program. Sample output follows:Breakit.c
Running buildHash(): 23 entries to create, min string length 5, max string length 15.
Number of entries in the table and array differ! 10 entries in the hash table, 23 entries in the array
Running sequential test. 11 errors in the sequential test
(process:8280): GLib-CRITICAL **: g_hash_table_iter_next: assertion 'ri->position < ri->hash_table->size' failed
Running key change test. Returned key changed in the key test. OK.
(process:8280): GLib-CRITICAL **: g_hash_table_iter_next: assertion 'ri->position < ri->hash_table->size' failed
Running lookup test 1, 23 passes, 13 strings not found, 1 pointer mismatches, 0 string mismatches
Running lookup test 2, 23 passes, 20 null pointers returned
Running lookup test 3, 23 passes, 23 null pointers returned
End
Edited by Emmanuele Bassi