mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-04-01 09:24:53 +02:00
Problem: test file not correctly named
Solution: move and split example_add.cpp
This commit is contained in:
parent
80dc604ed0
commit
1616c0fad2
@ -22,7 +22,8 @@ fetch_googletest(
|
||||
|
||||
add_executable(
|
||||
unit_tests
|
||||
example_add.cpp
|
||||
context.cpp
|
||||
socket.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
|
@ -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
9
tests/socket.cpp
Normal 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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user