mirror of
https://github.com/reactos/reactos.git
synced 2025-05-29 05:58:13 +00:00
[APPSHIM_APITEST] Move versionlie tests to a dedicate shim-test binary.
svn path=/trunk/; revision=71447
This commit is contained in:
parent
f1d8ae6b1a
commit
5d086596ff
6 changed files with 34 additions and 6 deletions
|
@ -2,6 +2,7 @@ include_directories(include)
|
||||||
|
|
||||||
add_subdirectory(advapi32)
|
add_subdirectory(advapi32)
|
||||||
add_subdirectory(apphelp)
|
add_subdirectory(apphelp)
|
||||||
|
add_subdirectory(appshim)
|
||||||
add_subdirectory(atl)
|
add_subdirectory(atl)
|
||||||
add_subdirectory(browseui)
|
add_subdirectory(browseui)
|
||||||
add_subdirectory(com)
|
add_subdirectory(com)
|
||||||
|
|
|
@ -6,7 +6,6 @@ list(APPEND SOURCE
|
||||||
data.c
|
data.c
|
||||||
db.c
|
db.c
|
||||||
layerapi.c
|
layerapi.c
|
||||||
versionlie.c
|
|
||||||
testlist.c)
|
testlist.c)
|
||||||
|
|
||||||
add_executable(apphelp_apitest ${SOURCE})
|
add_executable(apphelp_apitest ${SOURCE})
|
||||||
|
|
|
@ -6,13 +6,11 @@
|
||||||
extern void func_apphelp(void);
|
extern void func_apphelp(void);
|
||||||
extern void func_db(void);
|
extern void func_db(void);
|
||||||
extern void func_layerapi(void);
|
extern void func_layerapi(void);
|
||||||
extern void func_versionlie(void);
|
|
||||||
|
|
||||||
const struct test winetest_testlist[] =
|
const struct test winetest_testlist[] =
|
||||||
{
|
{
|
||||||
{ "apphelp", func_apphelp },
|
{ "apphelp", func_apphelp },
|
||||||
{ "db", func_db },
|
{ "db", func_db },
|
||||||
{ "layerapi", func_layerapi },
|
{ "layerapi", func_layerapi },
|
||||||
{ "versionlie", func_versionlie },
|
|
||||||
{ 0, 0 }
|
{ 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
11
rostests/apitests/appshim/CMakeLists.txt
Normal file
11
rostests/apitests/appshim/CMakeLists.txt
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
project(appcompat)
|
||||||
|
add_definitions(-D__ROS_LONG64__)
|
||||||
|
|
||||||
|
list(APPEND SOURCE
|
||||||
|
versionlie.c
|
||||||
|
testlist.c)
|
||||||
|
|
||||||
|
add_executable(appshim_apitest ${SOURCE})
|
||||||
|
set_module_type(appshim_apitest win32cui)
|
||||||
|
add_importlibs(appshim_apitest msvcrt kernel32 ntdll)
|
||||||
|
add_cd_file(TARGET appshim_apitest DESTINATION reactos/bin FOR all)
|
12
rostests/apitests/appshim/testlist.c
Normal file
12
rostests/apitests/appshim/testlist.c
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
/* Automatically generated file; DO NOT EDIT!! */
|
||||||
|
|
||||||
|
#define STANDALONE
|
||||||
|
#include <wine/test.h>
|
||||||
|
|
||||||
|
extern void func_versionlie(void);
|
||||||
|
|
||||||
|
const struct test winetest_testlist[] =
|
||||||
|
{
|
||||||
|
{ "versionlie", func_versionlie },
|
||||||
|
{ 0, 0 }
|
||||||
|
};
|
|
@ -27,9 +27,6 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "wine/test.h"
|
#include "wine/test.h"
|
||||||
|
|
||||||
/* data.c */
|
|
||||||
DWORD get_host_winver(void);
|
|
||||||
|
|
||||||
typedef struct tagHOOKAPI {
|
typedef struct tagHOOKAPI {
|
||||||
PCSTR LibraryName;
|
PCSTR LibraryName;
|
||||||
PCSTR FunctionName;
|
PCSTR FunctionName;
|
||||||
|
@ -305,6 +302,16 @@ VersionLieInfo g_WinVistaSP2 = { 0x17720006, 6, 0, 6002, VER_PLATFORM_WIN32_NT,
|
||||||
|
|
||||||
VersionLieInfo g_Win7RTM = { 0x1db00106, 6, 1, 7600, VER_PLATFORM_WIN32_NT, 0, 0 };
|
VersionLieInfo g_Win7RTM = { 0x1db00106, 6, 1, 7600, VER_PLATFORM_WIN32_NT, 0, 0 };
|
||||||
|
|
||||||
|
DWORD get_host_winver(void)
|
||||||
|
{
|
||||||
|
RTL_OSVERSIONINFOEXW rtlinfo = {0};
|
||||||
|
void (__stdcall* pRtlGetVersion)(RTL_OSVERSIONINFOEXW*);
|
||||||
|
pRtlGetVersion = (void (__stdcall*)(RTL_OSVERSIONINFOEXW*))GetProcAddress(GetModuleHandleA("ntdll"), "RtlGetVersion");
|
||||||
|
|
||||||
|
rtlinfo.dwOSVersionInfoSize = sizeof(rtlinfo);
|
||||||
|
pRtlGetVersion(&rtlinfo);
|
||||||
|
return (rtlinfo.dwMajorVersion << 8) | rtlinfo.dwMinorVersion;
|
||||||
|
}
|
||||||
|
|
||||||
START_TEST(versionlie)
|
START_TEST(versionlie)
|
||||||
{
|
{
|
Loading…
Reference in a new issue