[NTDLL_APITEST] Add a PCH.

This commit is contained in:
Amine Khaldi 2017-12-02 21:05:46 +01:00
parent aee83c359c
commit 283bbe7346
57 changed files with 71 additions and 272 deletions

View File

@ -55,16 +55,17 @@ list(APPEND SOURCE
StackOverflow.c
SystemInfo.c
Timer.c
testlist.c)
precomp.h)
if(ARCH STREQUAL "i386")
add_asm_files(ntdll_apitest_asm i386/NtContinue.S)
endif()
add_executable(ntdll_apitest ${SOURCE} ${ntdll_apitest_asm})
add_executable(ntdll_apitest ${SOURCE} ${ntdll_apitest_asm} testlist.c)
target_link_libraries(ntdll_apitest wine uuid ${PSEH_LIB})
set_module_type(ntdll_apitest win32cui)
add_importlibs(ntdll_apitest msvcrt advapi32 kernel32 ntdll)
add_pch(ntdll_apitest precomp.h SOURCE)
if(NOT MSVC)
set_source_files_properties(RtlGetFullPathName_UstrEx.c PROPERTIES COMPILE_FLAGS "-Wno-format")

View File

@ -5,10 +5,7 @@
* PROGRAMMER: Timo Kreuzer
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/ldrfuncs.h>
#include "precomp.h"
typedef struct _TEST_RESOURCES
{

View File

@ -5,12 +5,8 @@
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#include "precomp.h"
#define WIN32_NO_STATUS
#include <ndk/lpcfuncs.h>
#include <ndk/obfuncs.h>
#include <ndk/rtlfuncs.h>
#include <process.h>
#define TEST_CONNECTION_INFO_SIGNATURE1 0xaabb0123

View File

@ -5,11 +5,7 @@
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include <ndk/mmfuncs.h>
#include "precomp.h"
static PVOID Allocations[4096] = { NULL };
static ULONG CurrentAllocation = 0;

View File

@ -5,12 +5,9 @@
* PROGRAMMER: Mark Jansen
*/
#include <apitest.h>
#include "precomp.h"
#include <windows.h>
#define WIN32_NO_STATUS
#include <ntndk.h>
#include <winsvc.h>
enum ServiceCommands
{

View File

@ -5,8 +5,7 @@
* PROGRAMMER:
*/
#include <apitest.h>
#include <ndk/kefuncs.h>
#include "precomp.h"
#include <setjmp.h>
#include <time.h>

View File

@ -5,12 +5,7 @@
* PROGRAMMER: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
*/
#define WIN32_NO_STATUS
#include <wine/test.h>
//#include <ndk/iotypes.h>
#include <ndk/iofuncs.h>
//#include <ndk/obtypes.h>
//#include <ndk/obfuncs.h>
#include "precomp.h"
START_TEST(NtCreateFile)
{

View File

@ -5,11 +5,7 @@
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#include <winreg.h>
#include <ndk/cmfuncs.h>
#include <ndk/obfuncs.h>
#include "precomp.h"
static
VOID

View File

@ -5,10 +5,7 @@
* PROGRAMMER: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
*/
#define WIN32_NO_STATUS
#include <wine/test.h>
#include <ndk/pstypes.h>
#include <ndk/psfuncs.h>
#include "precomp.h"
START_TEST(NtCreateThread)
{

View File

@ -4,14 +4,7 @@
* PURPOSE: Test for NtDeleteKey
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <stdio.h>
#include <ndk/rtlfuncs.h>
#include <ndk/cmfuncs.h>
#include <ndk/obfuncs.h>
#include <ndk/setypes.h>
#include "precomp.h"
static
NTSTATUS

View File

@ -1,9 +1,5 @@
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/pstypes.h>
#include <ndk/mmfuncs.h>
#include "precomp.h"
static void Test_NtFreeVirtualMemory(void)
{

View File

@ -5,18 +5,7 @@
* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
#include <stdio.h>
#include <apitest.h>
#include <strsafe.h>
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include <ndk/cmfuncs.h>
#include <ndk/cmtypes.h>
#include <ndk/iofuncs.h>
#include <ndk/obfuncs.h>
#include <ndk/setypes.h>
#include "precomp.h"
/* See xdk/cmtypes.h */
#define REG_CREATED_NEW_KEY 1

View File

@ -6,10 +6,7 @@
* Thomas Faber
*/
#include <apitest.h>
#include <strsafe.h>
#define WIN32_NO_STATUS
#include <ndk/ntndk.h>
#include "precomp.h"
void
Test_PageFileSection(void)

View File

@ -1,8 +1,5 @@
#include <apitest.h>
#include <ndk/exfuncs.h>
#include "precomp.h"
VOID
Test_Release(VOID)

View File

@ -5,15 +5,10 @@
* PROGRAMMER: Mark Jansen (mark.jansen@reactos.org)
*/
#include <apitest.h>
#include <ntndk.h>
#include "precomp.h"
#define TEST_STR L"\\Registry\\Machine\\SOFTWARE"
START_TEST(NtOpenKey)
{
OBJECT_ATTRIBUTES Object;

View File

@ -5,11 +5,7 @@
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#include <ndk/obfuncs.h>
#include <ndk/psfuncs.h>
#include <ndk/sefuncs.h>
#include "precomp.h"
START_TEST(NtOpenProcessToken)
{

View File

@ -5,11 +5,7 @@
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#include <ndk/obfuncs.h>
#include <ndk/psfuncs.h>
#include <ndk/rtlfuncs.h>
#include "precomp.h"
START_TEST(NtOpenThreadToken)
{

View File

@ -6,11 +6,7 @@
* Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include <ndk/mmfuncs.h>
#include "precomp.h"
static
void

View File

@ -5,12 +5,7 @@
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include <ndk/kefuncs.h>
#include <ndk/psfuncs.h>
#include "precomp.h"
static LARGE_INTEGER TestStartTime;

View File

@ -6,13 +6,7 @@
* Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include <ndk/cmfuncs.h>
#include <ndk/cmtypes.h>
#include <ndk/obfuncs.h>
#include "precomp.h"
static
void

View File

@ -5,12 +5,7 @@
* PROGRAMMER: Hermès BÉLUSCA - MAÏTO <hermes.belusca@sfr.fr>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/setypes.h>
#include <ndk/rtlfuncs.h>
#include <ndk/exfuncs.h>
#include "precomp.h"
// Arbitrary-defined constants
#define MIN_BUFFER_LENGTH 4L

View File

@ -5,10 +5,7 @@
* PROGRAMMER: Víctor Martínez Calvo <vicmarcal@gmail.com>
*/
#define WIN32_NO_STATUS
#include <stdio.h>
#include <wine/test.h>
#include <ndk/ntndk.h>
#include "precomp.h"
static
VOID

View File

@ -5,16 +5,7 @@
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <winreg.h>
#include <ndk/cmfuncs.h>
#include <ndk/iofuncs.h>
#include <ndk/mmfuncs.h>
#include <ndk/obfuncs.h>
#include <ndk/psfuncs.h>
#include <ndk/rtlfuncs.h>
#include "precomp.h"
static
BOOL

View File

@ -5,13 +5,7 @@
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include <ndk/cmfuncs.h>
#include <ndk/obfuncs.h>
#include <ndk/setypes.h>
#include "precomp.h"
static
NTSTATUS

View File

@ -5,14 +5,7 @@
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#include <winreg.h>
#define WIN32_NO_STATUS
#include <ndk/cmfuncs.h>
#include <ndk/obfuncs.h>
#include <ndk/rtlfuncs.h>
#include <strsafe.h>
#include "precomp.h"
START_TEST(NtSetValueKey)
{

View File

@ -5,16 +5,7 @@
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <winreg.h>
#include <ndk/cmfuncs.h>
#include <ndk/iofuncs.h>
#include <ndk/mmfuncs.h>
#include <ndk/obfuncs.h>
#include <ndk/psfuncs.h>
#include <ndk/rtlfuncs.h>
#include "precomp.h"
static
BOOL

View File

@ -5,10 +5,7 @@
* PROGRAMMER: Pierre Schweitzer <pierre@reactos.org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include "precomp.h"
PVOID Buffers[0x100];

View File

@ -1,9 +1,5 @@
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/mmfuncs.h>
#include <ndk/rtlfuncs.h>
#include "precomp.h"
static
PVOID

View File

@ -5,10 +5,7 @@
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include "precomp.h"
START_TEST(RtlCopyMappedMemory)
{

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#include <ndk/mmfuncs.h>
#include <ndk/rtlfuncs.h>
#include "precomp.h"
static
PVOID

View File

@ -5,11 +5,7 @@
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/mmfuncs.h>
#include <ndk/rtlfuncs.h>
#include "precomp.h"
/*
ULONG

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/rtlfuncs.h>
#include "precomp.h"
#define ok_bool_file(value, expected, file) do { \
if (expected) \

View File

@ -5,10 +5,7 @@
* PROGRAMMER: Giannis Adamopoulos
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include "precomp.h"
#define ok_eq_hex(value, expected) ok((value) == (expected), #value " = 0x%lx, expected 0x%lx\n", value, expected)
#define ok_eq_pointer(value, expected) ok((value) == (expected), #value " = %p, expected %p\n", value, expected)

View File

@ -39,10 +39,7 @@
# include <stdio.h>
# include <stddef.h>
#else /* Compile for ReactOS or wine */
# include <apitest.h>
# define WIN32_NO_STATUS
# include <stdio.h>
# include <ndk/rtlfuncs.h>
# include "precomp.h"
#endif
/*

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/rtlfuncs.h>
#include "precomp.h"
/*
ULONG

View File

@ -5,10 +5,7 @@
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include "precomp.h"
/*
NTSTATUS

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#include <ndk/mmfuncs.h>
#include <ndk/rtlfuncs.h>
#include "precomp.h"
static
PVOID

View File

@ -5,11 +5,7 @@
* PROGRAMMER: Pierre Schweitzer <pierre@reactos.org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include <stdio.h>
#include "precomp.h"
NTSYSAPI
VOID

View File

@ -5,10 +5,7 @@
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include "precomp.h"
/*
ULONG

View File

@ -5,10 +5,7 @@
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include "precomp.h"
/*
ULONG

View File

@ -5,10 +5,7 @@
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include "precomp.h"
/*
NTSTATUS

View File

@ -5,9 +5,7 @@
* PROGRAMMER: David Quintana <gigaherz@gmail.com>
*/
#define WIN32_NO_STATUS
#include <apitest.h>
#include <ndk/rtlfuncs.h>
#include "precomp.h"
#define MakeTestEntry_Success(str, expect) \
{ str, expect, STATUS_SUCCESS, __LINE__ }

View File

@ -5,10 +5,7 @@
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include "precomp.h"
/*
ULONG

View File

@ -5,11 +5,7 @@
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include <stdio.h>
#include "precomp.h"
typedef struct _TEST_HANDLE_ENTRY
{

View File

@ -5,9 +5,7 @@
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#include <ndk/mmfuncs.h>
#include <ndk/rtlfuncs.h>
#include "precomp.h"
static
PVOID

View File

@ -5,10 +5,7 @@
* PROGRAMMERS: Timo Kreuzer
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include "precomp.h"
void Test_RtlInitializeBitmap()
{

View File

@ -5,10 +5,7 @@
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include "precomp.h"
START_TEST(RtlIsNameLegalDOS8Dot3)
{

View File

@ -5,10 +5,9 @@
* PROGRAMMER: David Quintana <gigaherz@gmail.com>
*/
#define COBJMACROS
#include "precomp.h"
#include <apitest.h>
#include <ndk/rtlfuncs.h>
#define COBJMACROS
#include <ole2.h>
#include <wtypes.h>

View File

@ -5,10 +5,7 @@
* PROGRAMMER: Mark Jansen
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include "precomp.h"
NTSTATUS (NTAPI *pRtlNtPathNameToDosPathName)(ULONG Flags, PRTL_UNICODE_STRING_BUFFER Path, PULONG Type, PULONG Unknown4);

View File

@ -5,8 +5,7 @@
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#include <ndk/rtlfuncs.h>
#include "precomp.h"
static
BOOLEAN

View File

@ -5,8 +5,7 @@
* PROGRAMMERS: Pierre Schweitzer <pierre@reactos.org>
*/
#include <apitest.h>
#include <ndk/rtlfuncs.h>
#include "precomp.h"
START_TEST(RtlUnicodeStringToAnsiString)
{

View File

@ -5,10 +5,7 @@
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include "precomp.h"
START_TEST(RtlUpcaseUnicodeStringToCountedOemString)
{

View File

@ -5,10 +5,8 @@
* PROGRAMMER: Mark Jansen
*/
#include <apitest.h>
#include "precomp.h"
#define WIN32_NO_STATUS
#include <ndk/rtlfuncs.h>
#include <tlhelp32.h>

View File

@ -5,11 +5,7 @@
* PROGRAMMER: Jérôme Gardou
*/
#define WIN32_NO_STATUS
#include <apitest.h>
#include <stdio.h>
#include <ndk/rtlfuncs.h>
#include <ndk/mmfuncs.h>
#include "precomp.h"
static int iteration = 0;
static PVOID StackAllocationBase;

View File

@ -6,12 +6,7 @@
* Thomas Faber <thomas.faber@reactos.org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/exfuncs.h>
#include <ndk/rtlfuncs.h>
#include <ndk/setypes.h>
#include "precomp.h"
#define ntv6(x) (LOBYTE(LOWORD(GetVersion())) >= 6 ? (x) : 0)

View File

@ -5,13 +5,7 @@
* PROGRAMMER: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
*/
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/ketypes.h>
#include <ndk/kefuncs.h>
#include <stdio.h>
#include "precomp.h"
START_TEST(TimerResolution)
{

View File

@ -0,0 +1,11 @@
#ifndef _NTDLL_APITEST_PRECOMP_H_
#define _NTDLL_APITEST_PRECOMP_H_
#include <stdio.h>
#include <apitest.h>
#define WIN32_NO_STATUS
#include <ndk/ntndk.h>
#include <winreg.h>
#include <strsafe.h>
#endif /* _NTDLL_APITEST_PRECOMP_H_ */