mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
[KERNEL32_APITEST] Add a PCH.
This commit is contained in:
parent
3543c43252
commit
e00cc9728c
28 changed files with 43 additions and 120 deletions
|
@ -19,6 +19,7 @@ list(APPEND SOURCE
|
|||
LoadLibraryExW.c
|
||||
lstrcpynW.c
|
||||
lstrlen.c
|
||||
Mailslot.c
|
||||
MultiByteToWideChar.c
|
||||
PrivMoveFileIdentityW.c
|
||||
SetConsoleWindowInfo.c
|
||||
|
@ -27,14 +28,14 @@ list(APPEND SOURCE
|
|||
TerminateProcess.c
|
||||
TunnelCache.c
|
||||
WideCharToMultiByte.c
|
||||
testlist.c
|
||||
Mailslot.c)
|
||||
precomp.h)
|
||||
|
||||
add_executable(kernel32_apitest ${SOURCE})
|
||||
add_executable(kernel32_apitest ${SOURCE} testlist.c)
|
||||
target_link_libraries(kernel32_apitest wine ${PSEH_LIB})
|
||||
set_module_type(kernel32_apitest win32cui)
|
||||
add_delay_importlibs(kernel32_apitest advapi32 shlwapi)
|
||||
add_importlibs(kernel32_apitest msvcrt kernel32 ntdll)
|
||||
add_pch(kernel32_apitest precomp.h SOURCE)
|
||||
add_rostests_file(TARGET kernel32_apitest)
|
||||
|
||||
list(APPEND MANIFEST_FILES
|
||||
|
|
|
@ -5,9 +5,7 @@
|
|||
* PROGRAMMERS: Katayama Hirofumi MZ
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <wincon.h>
|
||||
#include <winnls.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define okCURSOR(hCon, c) do { \
|
||||
CONSOLE_SCREEN_BUFFER_INFO __sbi; \
|
||||
|
|
|
@ -5,10 +5,9 @@
|
|||
* PROGRAMMERS: Mark Jansen
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <ndk/rtltypes.h>
|
||||
#include <ndk/rtlfuncs.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#include <ndk/rtlfuncs.h>
|
||||
|
||||
START_TEST(CreateProcess)
|
||||
{
|
||||
|
|
|
@ -18,14 +18,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "winerror.h"
|
||||
#include "precomp.h"
|
||||
|
||||
START_TEST(DefaultActCtx)
|
||||
{
|
||||
|
|
|
@ -5,10 +5,9 @@
|
|||
* PROGRAMMER: Pierre Schweitzer <pierre@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <strsafe.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#include <winioctl.h>
|
||||
#include <mountmgr.h>
|
||||
#include <mountdev.h>
|
||||
|
||||
WCHAR Letter;
|
||||
|
|
|
@ -18,13 +18,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "winerror.h"
|
||||
#include "precomp.h"
|
||||
|
||||
#define STRSECTION_MAGIC 0x64487353 /* dHsS */
|
||||
|
||||
|
|
|
@ -5,9 +5,7 @@
|
|||
* PROGRAMMER: Hermès BÉLUSCA - MAÏTO
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <windows.h>
|
||||
#include "precomp.h"
|
||||
|
||||
/*
|
||||
* NOTE: This test supposes the following requirements:
|
||||
|
|
|
@ -5,12 +5,7 @@
|
|||
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <stdio.h>
|
||||
#include <ndk/rtltypes.h>
|
||||
#include <winreg.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static
|
||||
VOID
|
||||
|
|
|
@ -5,11 +5,7 @@
|
|||
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <stdio.h>
|
||||
#include <ndk/rtltypes.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static
|
||||
BOOLEAN
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#include <apitest.h>
|
||||
#include <strsafe.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define IS_DRIVE_TYPE_VALID(type) ((type) != DRIVE_UNKNOWN && (type) != DRIVE_NO_ROOT_DIR)
|
||||
|
||||
|
|
|
@ -5,14 +5,8 @@
|
|||
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
#include <stdio.h>
|
||||
#include <winreg.h>
|
||||
#include <winnls.h>
|
||||
#include <shlwapi.h>
|
||||
|
||||
static
|
||||
|
|
|
@ -5,10 +5,7 @@
|
|||
* PROGRAMMER: Pierre Schweitzer <pierre@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <stdio.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static VOID
|
||||
TestGetVolumeInformationA(VOID)
|
||||
|
|
|
@ -5,13 +5,7 @@
|
|||
* PROGRAMMER: Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
#include <stdio.h>
|
||||
#include <winnls.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define MAX_RANGE 4
|
||||
|
||||
|
|
|
@ -16,13 +16,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "winerror.h"
|
||||
#include "precomp.h"
|
||||
|
||||
HANDLE _CreateActCtxFromFile(LPCWSTR FileName, int line);
|
||||
VOID _ActivateCtx(HANDLE h, ULONG_PTR *cookie, int line);
|
||||
|
|
|
@ -5,10 +5,7 @@
|
|||
* PROGRAMMER: Nikita Pechenkin (n.pechenkin@mail.ru)
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <stdio.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define LMS TEXT("\\\\.\\mailslot\\rostest_slot")
|
||||
#define MSG (0x50DA)
|
||||
|
|
|
@ -5,9 +5,7 @@
|
|||
* PROGRAMMER: Mike "tamlin" Nordell
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <winnls.h>
|
||||
#include "precomp.h"
|
||||
|
||||
START_TEST(MultiByteToWideChar)
|
||||
{
|
||||
|
|
|
@ -5,11 +5,9 @@
|
|||
* PROGRAMMER: Pierre Schweitzer <pierre@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <ndk/iofuncs.h>
|
||||
#include <ndk/rtltypes.h>
|
||||
|
||||
static const WCHAR FileName[] = L"TestFile.xxx";
|
||||
static const CHAR FileNameA[] = "TestFile.xxx";
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
* PROGRAMMER: Hermes Belusca-Maito
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include <wincon.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static VOID
|
||||
ResizeTextConsole(
|
||||
|
|
|
@ -5,11 +5,7 @@
|
|||
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <stdio.h>
|
||||
#include <ndk/rtltypes.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static
|
||||
VOID
|
||||
|
|
|
@ -5,11 +5,8 @@
|
|||
* PROGRAMMER: Mike "tamlin" Nordell
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <stdio.h>
|
||||
#include <ndk/rtltypes.h>
|
||||
#include <xmmintrin.h>
|
||||
|
||||
/*
|
||||
|
|
|
@ -5,10 +5,9 @@
|
|||
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#include <ndk/obfuncs.h>
|
||||
#include <strsafe.h>
|
||||
|
||||
static
|
||||
HANDLE
|
||||
|
|
|
@ -5,11 +5,7 @@
|
|||
* PROGRAMMER: Pierre Schweitzer <pierre.schweitzer@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <stdio.h>
|
||||
#include <ndk/rtlfuncs.h>
|
||||
#include "precomp.h"
|
||||
|
||||
static
|
||||
void
|
||||
|
|
|
@ -5,9 +5,7 @@
|
|||
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#include <winnls.h>
|
||||
#include "precomp.h"
|
||||
|
||||
#define ntv6(x) (LOBYTE(LOWORD(GetVersion())) >= 6 ? (x) : 0)
|
||||
|
||||
|
|
|
@ -18,13 +18,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "winerror.h"
|
||||
#include "precomp.h"
|
||||
|
||||
#define SUBST_DRIVE_LETTER 'M'
|
||||
#define SUBST_DRIVE "M:"
|
||||
|
|
|
@ -18,12 +18,7 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "winerror.h"
|
||||
#include "precomp.h"
|
||||
|
||||
static void test_InterlockedCompareExchange(void)
|
||||
{
|
||||
|
|
|
@ -4,10 +4,7 @@
|
|||
* PURPOSE: Test for lstrcpynW
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <stdio.h>
|
||||
#include "precomp.h"
|
||||
|
||||
START_TEST(lstrcpynW)
|
||||
{
|
||||
|
|
|
@ -5,10 +5,7 @@
|
|||
* PROGRAMMER: Hermes Belusca-Maito
|
||||
*/
|
||||
|
||||
#include <apitest.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <stdio.h>
|
||||
#include "precomp.h"
|
||||
|
||||
LONG WINAPI VEHandler_1(PEXCEPTION_POINTERS ExceptionInfo)
|
||||
{
|
||||
|
|
11
modules/rostests/apitests/kernel32/precomp.h
Normal file
11
modules/rostests/apitests/kernel32/precomp.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
#ifndef _KERNEL32_APITEST_PRECOMP_H_
|
||||
#define _KERNEL32_APITEST_PRECOMP_H_
|
||||
|
||||
#include <apitest.h>
|
||||
#include <wincon.h>
|
||||
#include <winnls.h>
|
||||
#include <winreg.h>
|
||||
#include <strsafe.h>
|
||||
#include <ndk/umtypes.h>
|
||||
|
||||
#endif /* _KERNEL32_APITEST_PRECOMP_H_ */
|
Loading…
Reference in a new issue