[KERNEL32_APITEST] Add a PCH.

This commit is contained in:
Amine Khaldi 2017-12-13 13:48:26 +01:00
parent 3543c43252
commit e00cc9728c
28 changed files with 43 additions and 120 deletions

View file

@ -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

View file

@ -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; \

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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;

View file

@ -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 */

View file

@ -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:

View file

@ -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

View file

@ -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

View file

@ -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)

View file

@ -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

View file

@ -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)

View file

@ -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

View file

@ -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);

View file

@ -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)

View file

@ -5,9 +5,7 @@
* PROGRAMMER: Mike "tamlin" Nordell
*/
#include <apitest.h>
#include <winnls.h>
#include "precomp.h"
START_TEST(MultiByteToWideChar)
{

View file

@ -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";

View file

@ -5,8 +5,7 @@
* PROGRAMMER: Hermes Belusca-Maito
*/
#include <apitest.h>
#include <wincon.h>
#include "precomp.h"
static VOID
ResizeTextConsole(

View file

@ -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

View file

@ -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>
/*

View file

@ -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

View file

@ -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

View file

@ -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)

View file

@ -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:"

View file

@ -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)
{

View file

@ -4,10 +4,7 @@
* PURPOSE: Test for lstrcpynW
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <stdio.h>
#include "precomp.h"
START_TEST(lstrcpynW)
{

View file

@ -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)
{

View 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_ */