diff options
author | Mark Janes <mark.a.janes@intel.com> | 2016-07-21 10:07:14 -0700 |
---|---|---|
committer | Mark Janes <mark.a.janes@intel.com> | 2017-06-19 14:04:46 -0700 |
commit | 328ffd74b89de56f0ae83d2268788f88f29c216c (patch) | |
tree | e025f73923e8afa3f6c17f861b8531506bcc8f36 /retrace/daemon/test | |
parent | b7201cd35995e872cfd600fb0491039ff352e917 (diff) |
cmake: use single implementation file for socket
Windows must initialize winsock library before use.
Diffstat (limited to 'retrace/daemon/test')
-rw-r--r-- | retrace/daemon/test/retrace_socket_test.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/retrace/daemon/test/retrace_socket_test.cpp b/retrace/daemon/test/retrace_socket_test.cpp index 30518a76..44a17842 100644 --- a/retrace/daemon/test/retrace_socket_test.cpp +++ b/retrace/daemon/test/retrace_socket_test.cpp @@ -62,6 +62,7 @@ class TestServer : public Thread { }; TEST(Thread, Socket_Read_Write) { + Socket::Init(); std::vector<uint8_t> buf; buf.reserve(10000); unsigned int seed = 1; @@ -83,5 +84,6 @@ TEST(Thread, Socket_Read_Write) { s.Read(buf2.data(), 10000); EXPECT_EQ(buf, buf2); server.Join(); + Socket::Cleanup(); } |