X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fbenchmark%2Ftest_perthreadlock.c;fp=tests%2Fbenchmark%2Ftest_perthreadlock.c;h=47a512cba06b12d8672247710db5feabdd2e3c45;hp=76cdee9afa306fa06adfa26f32ce246789c54090;hb=014775106c60f02818ca755b331f887030bd440f;hpb=2a27e9319bacc9bc98f38afb7e4f050601ab979b diff --git a/tests/benchmark/test_perthreadlock.c b/tests/benchmark/test_perthreadlock.c index 76cdee9..47a512c 100644 --- a/tests/benchmark/test_perthreadlock.c +++ b/tests/benchmark/test_perthreadlock.c @@ -28,10 +28,10 @@ #include #include #include -#include #include #include +#include #include #include "thread-id.h" @@ -184,7 +184,7 @@ void *thr_reader(void *data) urcu_mutex_lock(&per_thread_lock[tidx].lock); v = test_array.a; - assert(v == 8); + urcu_posix_assert(v == 8); if (caa_unlikely(rduration)) loop_sleep(rduration); urcu_mutex_unlock(&per_thread_lock[tidx].lock);