projects
/
platform
/
upstream
/
libgc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1153187
)
Skip disclaim_bench.c if AO_fetch_and_add1 is missing.
author
Petter Urkedal
<paurkedal@gmail.com>
Sat, 24 Sep 2011 08:20:58 +0000
(10:20 +0200)
committer
Ivan Maidanski
<ivmai@mail.ru>
Fri, 30 Sep 2011 13:35:31 +0000
(17:35 +0400)
tests/disclaim_bench.c
patch
|
blob
|
history
diff --git
a/tests/disclaim_bench.c
b/tests/disclaim_bench.c
index
0386ffc
..
2bc3797
100644
(file)
--- a/
tests/disclaim_bench.c
+++ b/
tests/disclaim_bench.c
@@
-23,7
+23,14
@@
#include "atomic_ops.h"
#include "gc_disclaim.h"
-// FIXME: skip test if AO_fetch_and_add1 not available
+#ifndef AO_HAVE_fetch_and_add1
+int main(void)
+{
+ printf("Skipping disclaim_bench since we don't have AO_fetch_and_add1.\n");
+ return 0;
+}
+#else
+
static AO_t free_count = 0;
typedef struct testobj_s *testobj_t;
@@
-129,3
+136,5
@@
int main(int argc, char **argv)
model_str[model], 0.0, t, "N/A");
return 0;
}
+
+#endif /* AO_HAVE_fetch_and_add1 */