From 2b514ae230510d5f7263f4aa55d633221340903f Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 1 Mar 2010 16:41:51 -0500 Subject: [PATCH] test cases: add multiple register/unregister tests Signed-off-by: Mathieu Desnoyers --- tests/test_qsbr.c | 4 ++++ tests/test_urcu.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/tests/test_qsbr.c b/tests/test_qsbr.c index f3550a0..fd6e1bc 100644 --- a/tests/test_qsbr.c +++ b/tests/test_qsbr.c @@ -251,6 +251,10 @@ void *thr_reader(void *_count) rcu_unregister_thread(); + /* test extra thread registration */ + rcu_register_thread(); + rcu_unregister_thread(); + *count = nr_reads; printf_verbose("thread_end %s, thread id : %lx, tid %lu\n", "reader", pthread_self(), (unsigned long)gettid()); diff --git a/tests/test_urcu.c b/tests/test_urcu.c index d7993cb..1e64fc3 100644 --- a/tests/test_urcu.c +++ b/tests/test_urcu.c @@ -249,6 +249,10 @@ void *thr_reader(void *_count) rcu_unregister_thread(); + /* test extra thread registration */ + rcu_register_thread(); + rcu_unregister_thread(); + *count = nr_reads; printf_verbose("thread_end %s, thread id : %lx, tid %lu\n", "reader", pthread_self(), (unsigned long)gettid()); -- 2.34.1