mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-12 08:08:25 +00:00
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)
This commit is contained in:
commit
e99f0d7ad4
@ -3,6 +3,10 @@
|
|||||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
|
|
||||||
#include <event2/event.h>
|
#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 <map>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
@ -86,3 +90,5 @@ BOOST_AUTO_TEST_CASE(raii_event_order)
|
|||||||
}
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_SUITE_END()
|
BOOST_AUTO_TEST_SUITE_END()
|
||||||
|
|
||||||
|
#endif // EVENT_SET_MEM_FUNCTIONS_IMPLEMENTED
|
||||||
|
Loading…
Reference in New Issue
Block a user