X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Ftest_urcu_hash.c;h=ba8f9e93c2697e126786c7d16e9cd9e7bc3f339c;hp=9bb7da721232626e44e2dfeed2d51a12bff6d892;hb=273399de2e11da5cfea7b412a4bdd904467e9126;hpb=7ec59d3b56b9a40d2d3027ad90800c9471ae3337 diff --git a/tests/test_urcu_hash.c b/tests/test_urcu_hash.c index 9bb7da7..ba8f9e9 100644 --- a/tests/test_urcu_hash.c +++ b/tests/test_urcu_hash.c @@ -594,8 +594,13 @@ int main(int argc, char **argv) tot_writes += count_writer[i]; } ret = ht_destroy(test_ht); - if (ret) - printf("WARNING: nodes left in the hash table upon destroy\n"); + if (ret) { + unsigned long count, removed; + + ht_count_nodes(test_ht, &count, &removed); + printf("WARNING: nodes left in the hash table upon destroy: " + "%lu nodes + %lu logically removed.\n", count, removed); + } printf_verbose("final delete: %d items\n", ret); printf_verbose("total number of reads : %llu, writes %llu\n", tot_reads,