Add `urcu_posix_assert()` as `assert()` replacement
[urcu.git] / tests / regression / test_urcu_fork.c
index b6f94f55738de8fd8aad241f98b5e3317b99b00c..81dbe7742f769fb5b82db701de9cb515c148c60e 100644 (file)
 #include <sys/wait.h>
 #include <unistd.h>
 #include <stdio.h>
-#include <assert.h>
 #include <sched.h>
 #include <errno.h>
 
+#include <urcu/assert.h>
 #include <urcu/arch.h>
 #include <urcu/tls-compat.h>
 
@@ -89,7 +89,7 @@ static void test_rcu(void)
        rcu_read_unlock();
 
        node = malloc(sizeof(*node));
-       assert(node);
+       urcu_posix_assert(node);
 
        call_rcu(&node->head, cb);
 
This page took 0.022991 seconds and 4 git commands to generate.