Problem: test file not correctly named

Solution: move and split example_add.cpp
This commit is contained in:
Simon Giesecke 2018-04-03 12:02:08 +02:00
parent 80dc604ed0
commit 1616c0fad2
3 changed files with 11 additions and 7 deletions

View File

@ -22,7 +22,8 @@ fetch_googletest(
add_executable(
unit_tests
example_add.cpp
context.cpp
socket.cpp
)
target_link_libraries(

View File

@ -13,9 +13,3 @@ TEST(context, create_close)
ASSERT_EQ(NULL, (void*)context);
}
TEST(socket, create_destroy)
{
zmq::context_t context;
zmq::socket_t socket(context, ZMQ_ROUTER);
}

9
tests/socket.cpp Normal file
View File

@ -0,0 +1,9 @@
#include <gtest/gtest.h>
#include <zmq.hpp>
TEST(socket, create_destroy)
{
zmq::context_t context;
zmq::socket_t socket(context, ZMQ_ROUTER);
}