projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: report error value for make check
[userspace-rcu.git]
/
tests
/
test_urcu_wfq.c
diff --git
a/tests/test_urcu_wfq.c
b/tests/test_urcu_wfq.c
index 0116d5f6fd2edcc86eec781dbf40e5b19bcd44c0..d1760414f30378151a62d8c34656e9f09002d6fc 100644
(file)
--- a/
tests/test_urcu_wfq.c
+++ b/
tests/test_urcu_wfq.c
@@
-65,6
+65,10
@@
static inline pid_t gettid(void)
#ifndef DYNAMIC_LINK_TEST
#define _LGPL_SOURCE
#endif
#ifndef DYNAMIC_LINK_TEST
#define _LGPL_SOURCE
#endif
+
+/* Remove deprecation warnings from test build. */
+#define CDS_WFQ_DEPRECATED
+
#include <urcu.h>
#include <urcu/wfqueue.h>
#include <urcu.h>
#include <urcu/wfqueue.h>
@@
-105,9
+109,10
@@
typedef unsigned long cpu_set_t;
static void set_affinity(void)
{
static void set_affinity(void)
{
+#if HAVE_SCHED_SETAFFINITY
cpu_set_t mask;
cpu_set_t mask;
- int cpu;
- int ret;
+ int cpu
, ret
;
+#endif /* HAVE_SCHED_SETAFFINITY */
if (!use_affinity)
return;
if (!use_affinity)
return;
This page took
0.023922 seconds
and
4
git commands to generate.