mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-24 17:30:47 +02:00
Port tests to windows and add to cmake build.
This commit is contained in:
@@ -22,10 +22,15 @@
|
||||
|
||||
#include "../include/zmq.h"
|
||||
#include <string.h>
|
||||
|
||||
#undef NDEBUG
|
||||
#include <assert.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#if defined _WIN32
|
||||
#pragma warning(disable:4996)
|
||||
#endif
|
||||
|
||||
// Bounce a message from client to server and back
|
||||
// For REQ/REP or DEALER/DEALER pairs only
|
||||
|
||||
@@ -191,4 +196,11 @@ void close_zero_linger (void *socket)
|
||||
assert (rc == 0);
|
||||
}
|
||||
|
||||
void setup_test_environment()
|
||||
{
|
||||
#if defined _WIN32
|
||||
_set_abort_behavior( 0, _WRITE_ABORT_MSG);
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user