From: Mathieu Desnoyers Date: Mon, 1 Mar 2010 21:41:51 +0000 (-0500) Subject: test cases: add multiple register/unregister tests X-Git-Tag: v0.4.2~8 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2b514ae230510d5f7263f4aa55d633221340903f;p=userspace-rcu.git test cases: add multiple register/unregister tests Signed-off-by: Mathieu Desnoyers --- 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());