Skip to content

Commit 95f97f4

Browse files
committed
Skip RAII event tests if libevent is built without event_set_mem_functions
1 parent 05a55a6 commit 95f97f4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/raii_event_tests.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

55
#include <event2/event.h>
6+
7+
#ifdef EVENT_SET_MEM_FUNCTIONS_IMPLEMENTED
8+
// 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)
9+
610
#include <map>
711
#include <stdlib.h>
812

@@ -86,3 +90,5 @@ BOOST_AUTO_TEST_CASE(raii_event_order)
8690
}
8791

8892
BOOST_AUTO_TEST_SUITE_END()
93+
94+
#endif // EVENT_SET_MEM_FUNCTIONS_IMPLEMENTED

0 commit comments

Comments
 (0)