manojampalam 95e7d99012 3-6 C9
2016-03-06 19:19:50 -08:00

26 lines
569 B
C

/*
* Author: Manoj Ampalam <manoj.ampalam@microsoft.com>
*/
#include <fcntl.h>
#include <sys\types.h>
#include <sys\stat.h>
#include <io.h>
#include "test_helper.h"
extern void log_init(char *av0, int level, int facility, int on_stderr);
extern int logfd;
void socket_tests();
void file_tests();
void tests(void)
{
_set_abort_behavior(0, 1);
log_init(NULL, 7, 2, 0);
logfd = _open("unittests.log", _O_WRONLY | _O_CREAT | _O_TRUNC, S_IREAD | S_IWRITE | _O_NOINHERIT);
socket_tests();
file_tests();
if (logfd > 0) _close(logfd);
return;
}