summaryrefslogtreecommitdiff
path: root/tests/sys_select_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sys_select_test.cpp')
-rw-r--r--tests/sys_select_test.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/sys_select_test.cpp b/tests/sys_select_test.cpp
index d4ac333d2..4ad77f087 100644
--- a/tests/sys_select_test.cpp
+++ b/tests/sys_select_test.cpp
@@ -23,6 +23,8 @@
#include <sys/types.h>
#include <sys/wait.h>
+#include "utils.h"
+
TEST(sys_select, fd_set_smoke) {
fd_set fds;
FD_ZERO(&fds);
@@ -68,7 +70,8 @@ static void DelayedWriteCleanup(int pid, int fd) {
char buf[sizeof(DELAY_MSG)];
ASSERT_EQ(static_cast<ssize_t>(sizeof(DELAY_MSG)), read(fd, buf, sizeof(DELAY_MSG)));
ASSERT_STREQ(DELAY_MSG, buf);
- ASSERT_EQ(pid, waitpid(pid, NULL, 0));
+
+ AssertChildExited(pid, 0);
}
TEST(sys_select, select_smoke) {