3-5 c5
This commit is contained in:
parent
44c5be4883
commit
d8a231f2ea
|
@ -82,6 +82,7 @@
|
|||
<IntDir>$(Platform)\$(Configuration)\$(TargetName)\</IntDir>
|
||||
<TargetName>win32compatUnittests</TargetName>
|
||||
<OutDir>$(OpenSSH-Bin-Path)$(Platform)\$(Configuration)\</OutDir>
|
||||
<IncludePath>$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
|
@ -125,7 +126,7 @@
|
|||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>_WIN32_WINNT=0x501;WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<SDLCheck>false</SDLCheck>
|
||||
<AdditionalIncludeDirectories>$(OpenSSH-Src-Path)contrib\win32\win32compat\inc</AdditionalIncludeDirectories>
|
||||
<AdditionalIncludeDirectories>$(OpenSSH-Src-Path)contrib\win32\win32compat\inc;</AdditionalIncludeDirectories>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
|
|
|
@ -2,16 +2,24 @@
|
|||
* Author: Manoj Ampalam <manoj.ampalam@microsoft.com>
|
||||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
#include <fcntl.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 );
|
||||
socket_tests();
|
||||
file_tests();
|
||||
_close(logfd);
|
||||
return;
|
||||
}
|
Loading…
Reference in New Issue