X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fbenchmark%2Ftest_perthreadlock_timing.c;fp=tests%2Fbenchmark%2Ftest_perthreadlock_timing.c;h=34aae5fdba7918c1623b963deb5367ca195e571b;hp=712eca1b2806e920832c016c93d550147ac98e9d;hb=014775106c60f02818ca755b331f887030bd440f;hpb=2a27e9319bacc9bc98f38afb7e4f050601ab979b diff --git a/tests/benchmark/test_perthreadlock_timing.c b/tests/benchmark/test_perthreadlock_timing.c index 712eca1..34aae5f 100644 --- a/tests/benchmark/test_perthreadlock_timing.c +++ b/tests/benchmark/test_perthreadlock_timing.c @@ -28,11 +28,11 @@ #include #include #include -#include #include #include #include +#include #include "thread-id.h" @@ -87,7 +87,7 @@ void *thr_reader(void *arg) perror("Error in pthread mutex lock"); exit(-1); } - assert(test_array.a == 8); + urcu_posix_assert(test_array.a == 8); ret = pthread_mutex_unlock(&per_thread_lock[tidx].lock); if (ret) { perror("Error in pthread mutex unlock");