diff options
Diffstat (limited to 'tests/sys_socket_test.cpp')
-rw-r--r-- | tests/sys_socket_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sys_socket_test.cpp b/tests/sys_socket_test.cpp index 034254735..421a8178e 100644 --- a/tests/sys_socket_test.cpp +++ b/tests/sys_socket_test.cpp @@ -109,7 +109,7 @@ static void TestAccept4(struct sockaddr_un* addr, int fd) { ASSERT_NE(fd_acc, -1) << strerror(errno); // Check that SOCK_CLOEXEC was set properly. - AssertCloseOnExec(fd_acc, true); + ASSERT_TRUE(CloseOnExec(fd_acc)); close(fd_acc); } |