X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Ftest_urcu_hash.c;fp=tests%2Ftest_urcu_hash.c;h=3c7cc350d4d02ef7a200893ec2843d2349e1024c;hp=be632ee70a178e7573a47fffa835bfd5a23d06e0;hb=20adf7802bcec449566b9cbb900504fd409f62db;hpb=2af6e53640931d9d5243e4275e640cdd5c7f3505 diff --git a/tests/test_urcu_hash.c b/tests/test_urcu_hash.c index be632ee..3c7cc35 100644 --- a/tests/test_urcu_hash.c +++ b/tests/test_urcu_hash.c @@ -25,6 +25,7 @@ enum test_hash { TEST_HASH_RW, + TEST_HASH_UNIQUE, }; struct test_hash_cb { @@ -44,6 +45,14 @@ struct test_hash_cb test_hash_cb[] = { test_hash_rw_thr_writer, test_hash_rw_populate_hash, }, + [TEST_HASH_UNIQUE] = { + test_hash_unique_sigusr1_handler, + test_hash_unique_sigusr2_handler, + test_hash_unique_thr_reader, + test_hash_unique_thr_writer, + test_hash_unique_populate_hash, + }, + }; static enum test_hash test_choice = TEST_HASH_RW; @@ -280,6 +289,7 @@ printf(" [not -u nor -s] Add entries (supports redundant keys).\n"); printf(" [-N size] Write pool size.\n"); printf(" [-O size] Init pool size.\n"); printf(" [-V] Validate lookups of init values (use with filled init pool, same lookup range, with different write range).\n"); + printf(" [-U] Uniqueness test.\n"); printf("\n\n"); } @@ -443,7 +453,9 @@ int main(int argc, char **argv) case 'V': validate_lookup = 1; break; - + case 'U': + test_choice = TEST_HASH_UNIQUE; + break; } }