Add `urcu_posix_assert()` as `assert()` replacement
[urcu.git] / tests / benchmark / test_perthreadlock_timing.c
index 712eca1b2806e920832c016c93d550147ac98e9d..34aae5fdba7918c1623b963deb5367ca195e571b 100644 (file)
 #include <sys/wait.h>
 #include <unistd.h>
 #include <stdio.h>
-#include <assert.h>
 #include <pthread.h>
 #include <errno.h>
 
 #include <urcu/arch.h>
+#include <urcu/assert.h>
 
 #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");
This page took 0.022784 seconds and 4 git commands to generate.