X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=test%2Fblackbox%2Fcommon%2Fcommon_handlers.c;h=e728f4383684176f9b8fe409eb4b6d5252c63652;hb=feebc141462741d5d0270245d7e97624ddd0bdf8;hp=ad32a223e7d867e7b278f8030e237772b129f423;hpb=1c04402a6d2f3a85d0cb4a5b4a6db5b1f3a79511;p=meshlink diff --git a/test/blackbox/common/common_handlers.c b/test/blackbox/common/common_handlers.c index ad32a223..e728f438 100644 --- a/test/blackbox/common/common_handlers.c +++ b/test/blackbox/common/common_handlers.c @@ -17,6 +17,11 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ + +#ifdef NDEBUG +#undef NDEBUG +#endif + #include #include #include @@ -53,7 +58,8 @@ static int meshlink_get_node_in_container(const char *name) { return -1; } -void mesh_close_signal_handler(int a) { +void mesh_close_signal_handler(int signum) { + (void)signum; test_running = false; exit(EXIT_SUCCESS);