aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2017-01-30 13:56:21 +0100
committerWladimir J. van der Laan <[email protected]>2017-01-30 13:56:24 +0100
commite99f0d7ad443ff72087c6f80e9fab65cace0bf19 (patch)
treef9a300f6f587cc14a999a9c77682f61212d18016 /src
parentMerge #9649: [doc] Remove unused clang format dev script (diff)
parentSkip RAII event tests if libevent is built without event_set_mem_functions (diff)
downloaddiscoin-e99f0d7ad443ff72087c6f80e9fab65cace0bf19.tar.xz
discoin-e99f0d7ad443ff72087c6f80e9fab65cace0bf19.zip
Merge #9647: Skip RAII event tests if libevent is built without event_set_mem_functions
95f97f4 Skip RAII event tests if libevent is built without event_set_mem_functions (Luke Dashjr)
Diffstat (limited to 'src')
-rw-r--r--src/test/raii_event_tests.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/raii_event_tests.cpp b/src/test/raii_event_tests.cpp
index 87d25c0e2..0f40874f5 100644
--- a/src/test/raii_event_tests.cpp
+++ b/src/test/raii_event_tests.cpp
@@ -3,6 +3,10 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <event2/event.h>
+
+#ifdef EVENT_SET_MEM_FUNCTIONS_IMPLEMENTED
+// It would probably be ideal to define dummy test(s) that report skipped, but boost::test doesn't seem to make that practical (at least not in versions available with common distros)
+
#include <map>
#include <stdlib.h>
@@ -86,3 +90,5 @@ BOOST_AUTO_TEST_CASE(raii_event_order)
}
BOOST_AUTO_TEST_SUITE_END()
+
+#endif // EVENT_SET_MEM_FUNCTIONS_IMPLEMENTED