/* * Author: Manoj Ampalam */ #include #include #include #include #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; }