Build and run regression and unit tests as C++ programs
[urcu.git] / tests / regression / test_urcu_fork.c
index b6f94f55738de8fd8aad241f98b5e3317b99b00c..db4e81dcf67a36d8750684cc5f025a233a23ed33 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>
 
@@ -88,8 +88,8 @@ static void test_rcu(void)
        rcu_read_lock();
        rcu_read_unlock();
 
-       node = malloc(sizeof(*node));
-       assert(node);
+       node = (struct test_node *) malloc(sizeof(*node));
+       urcu_posix_assert(node);
 
        call_rcu(&node->head, cb);
 
This page took 0.023774 seconds and 4 git commands to generate.