Port tests to windows and add to cmake build.

This commit is contained in:
Richard Newton
2013-08-17 13:43:45 +01:00
parent e16a6af0c7
commit 7f74fc7c99
38 changed files with 171 additions and 108 deletions

View File

@@ -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