Skip to content

Commit

Permalink
Skip RAII event tests if libevent is built without event_set_mem_func…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
luke-jr authored and furszy committed Nov 11, 2021
1 parent e370b12 commit 3b8077e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/raii_event_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -84,3 +88,5 @@ BOOST_AUTO_TEST_CASE(raii_event_order)
}

BOOST_AUTO_TEST_SUITE_END()

#endif // EVENT_SET_MEM_FUNCTIONS_IMPLEMENTED

0 comments on commit 3b8077e

Please sign in to comment.