From 95e7d99012590ae8e87a16148b07b28b87316549 Mon Sep 17 00:00:00 2001 From: manojampalam Date: Sun, 6 Mar 2016 19:19:50 -0800 Subject: [PATCH] 3-6 C9 --- regress/unittests/win32compat/socket_tests.c | 3 ++- regress/unittests/win32compat/tests.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/regress/unittests/win32compat/socket_tests.c b/regress/unittests/win32compat/socket_tests.c index 2b3c30c..4f6f862 100644 --- a/regress/unittests/win32compat/socket_tests.c +++ b/regress/unittests/win32compat/socket_tests.c @@ -2,6 +2,7 @@ * Author: Manoj Ampalam */ +#include #include #include #include @@ -144,7 +145,7 @@ socket_fd_tests() ASSERT_INT_EQ(errno, EBADF); ASSERT_INT_EQ(fstat(11, NULL), -1); ASSERT_INT_EQ(errno, EBADF); - ASSERT_INT_EQ(isatty(12), -1); + ASSERT_INT_EQ(isatty(12), 0); ASSERT_INT_EQ(errno, EBADF); ASSERT_PTR_EQ(fdopen(13, NULL), NULL); ASSERT_INT_EQ(errno, EBADF); diff --git a/regress/unittests/win32compat/tests.c b/regress/unittests/win32compat/tests.c index 6eee9d7..84c2a04 100644 --- a/regress/unittests/win32compat/tests.c +++ b/regress/unittests/win32compat/tests.c @@ -3,6 +3,7 @@ */ #include +#include #include #include #include "test_helper.h"