2018-04-02 13:15:34 +02:00
|
|
|
#include <gtest/gtest.h>
|
2018-03-29 18:14:34 +02:00
|
|
|
#include <zmq.hpp>
|
2018-03-29 17:34:21 +02:00
|
|
|
|
2018-05-12 18:28:28 +02:00
|
|
|
TEST(context, create_default_destroy)
|
2018-03-29 17:34:21 +02:00
|
|
|
{
|
2018-03-29 18:14:34 +02:00
|
|
|
zmq::context_t context;
|
2018-04-02 13:15:34 +02:00
|
|
|
}
|
|
|
|
|
2018-05-12 18:28:28 +02:00
|
|
|
TEST(context, create_close)
|
2018-04-02 13:15:34 +02:00
|
|
|
{
|
|
|
|
zmq::context_t context;
|
2018-05-12 18:28:28 +02:00
|
|
|
context.close();
|
2018-05-11 21:29:15 +02:00
|
|
|
|
2018-05-12 18:28:28 +02:00
|
|
|
ASSERT_EQ(NULL, (void *) context);
|
2018-04-02 13:15:34 +02:00
|
|
|
}
|