[IPHLPAPI_APITEST] Move icmp tests from winetests to apitests where they belong. By Tim Crawford. ROSTESTS-201

svn path=/trunk/; revision=70261
This commit is contained in:
Amine Khaldi 2015-12-04 10:34:24 +00:00
parent f32001cd7e
commit cc656f9803
6 changed files with 8 additions and 33 deletions

View file

@ -1,5 +1,6 @@
list(APPEND SOURCE list(APPEND SOURCE
icmp.c
SendARP.c SendARP.c
testlist.c) testlist.c)

View file

@ -1,5 +1,5 @@
/* /*
* Unit test suite for Icmp.dll functions * Unit test suite for Icmp functions
* *
* Copyright 2006 Steven Edwards * Copyright 2006 Steven Edwards
* *
@ -17,17 +17,11 @@
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
/*
* TODO:
* It seems under Windows XP, 2003 and Vista these functions are not implemented
* in iphlpapi. Move the implementation and tests there.
*/
#include <windows.h> #include <apitest.h>
#include "wine/test.h" #include <ws2tcpip.h>
#include <iphlpapi.h>
HANDLE WINAPI IcmpCreateFile(void); #include <icmpapi.h>
BOOL WINAPI IcmpCloseHandle(HANDLE handle);
HANDLE handle; HANDLE handle;

View file

@ -3,10 +3,12 @@
#define STANDALONE #define STANDALONE
#include <apitest.h> #include <apitest.h>
extern void func_icmp(void);
extern void func_SendARP(void); extern void func_SendARP(void);
const struct test winetest_testlist[] = const struct test winetest_testlist[] =
{ {
{ "icmp", func_icmp },
{ "SendARP", func_SendARP }, { "SendARP", func_SendARP },
{ 0, 0 } { 0, 0 }

View file

@ -31,7 +31,6 @@ add_subdirectory(fusion)
add_subdirectory(gdi32) add_subdirectory(gdi32)
add_subdirectory(gdiplus) add_subdirectory(gdiplus)
add_subdirectory(hlink) add_subdirectory(hlink)
add_subdirectory(icmp)
add_subdirectory(imagehlp) add_subdirectory(imagehlp)
add_subdirectory(imm32) add_subdirectory(imm32)
add_subdirectory(inetcomm) add_subdirectory(inetcomm)

View file

@ -1,6 +0,0 @@
add_executable(icmp_winetest icmp.c testlist.c)
target_link_libraries(icmp_winetest wine uuid)
set_module_type(icmp_winetest win32cui)
add_importlibs(icmp_winetest icmp msvcrt kernel32 ntdll)
add_cd_file(TARGET icmp_winetest DESTINATION reactos/bin FOR all)

View file

@ -1,15 +0,0 @@
/* Automatically generated file; DO NOT EDIT!! */
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#define STANDALONE
#include "wine/test.h"
extern void func_icmp(void);
const struct test winetest_testlist[] =
{
{ "icmp", func_icmp },
{ 0, 0 }
};