This commit is contained in:
manojampalam 2016-03-06 19:19:50 -08:00
parent 277435f8f2
commit 95e7d99012
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,7 @@
* Author: Manoj Ampalam <manoj.ampalam@microsoft.com>
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/select.h>
@ -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);

View File

@ -3,6 +3,7 @@
*/
#include <fcntl.h>
#include <sys\types.h>
#include <sys\stat.h>
#include <io.h>
#include "test_helper.h"