Commit 79df1b2a authored by Thomas Markwalder's avatar Thomas Markwalder
Browse files

[3797] Use TEST_DATA_BUILDDIR for unit tests

Replaced use of TEST_DATA_DIR with TEST_DATA_BUILDDIR for socket_path
and fixed cast of close.
parent fa8705e1
......@@ -54,7 +54,7 @@ public:
/// @brief Closes the Control Channel socket
void disconnectFromServer() {
if (socket_fd_ >= 0) {
(void)(close(socket_fd_));
static_cast<void>(close(socket_fd_));
socket_fd_ = -1;
}
}
......@@ -223,7 +223,7 @@ public:
boost::shared_ptr<NakedControlledDhcpv6Srv> server_;
CtrlChannelDhcpv6SrvTest() {
socket_path_ = string(TEST_DATA_DIR) + "/kea6.sock";
socket_path_ = string(TEST_DATA_BUILDDIR) + "/kea6.sock";
reset();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment