X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Ftest_urcu_wfs.c;h=259ca2499b0d73a7cfde967d7488906daccad121;hb=fe1f98621fe1cfafdf66c332a004e2a8c8397b2a;hp=1c852b9dd0abce809d5e7b679300673c88bbe469;hpb=d05e9936ac167ead3a0ff5ca8ad0ade762bcda18;p=urcu.git diff --git a/tests/test_urcu_wfs.c b/tests/test_urcu_wfs.c index 1c852b9..259ca24 100644 --- a/tests/test_urcu_wfs.c +++ b/tests/test_urcu_wfs.c @@ -39,6 +39,7 @@ #include #include +#include #ifdef __linux__ #include @@ -65,7 +66,6 @@ static inline pid_t gettid(void) #ifndef DYNAMIC_LINK_TEST #define _LGPL_SOURCE #endif -#include #include /* @@ -256,7 +256,7 @@ static void do_test_pop_all(enum test_sync sync) cds_wfs_pop_unlock(&s); /* Check if empty */ - if (cds_wfs_first_blocking(head) == NULL) + if (cds_wfs_first(head) == NULL) return; URCU_TLS(nr_pop_all)++;