ddnet/src/test/unix.cpp

13 lines
208 B
C++
Raw Normal View History

2017-12-20 15:56:44 +00:00
#include <gtest/gtest.h>
#include <base/system.h>
#if defined(CONF_FAMILY_UNIX)
TEST(Unix, Create)
{
UNIXSOCKET Socket = net_unix_create_unnamed();
ASSERT_GE(Socket, 0);
net_unix_close(Socket);
}
#endif