[KERNEL32_APITEST] Add a PCH.
authorAmine Khaldi <amine.khaldi@reactos.org>
Wed, 13 Dec 2017 12:48:26 +0000 (13:48 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Wed, 13 Dec 2017 12:48:26 +0000 (13:48 +0100)
28 files changed:
modules/rostests/apitests/kernel32/CMakeLists.txt
modules/rostests/apitests/kernel32/Console.c
modules/rostests/apitests/kernel32/CreateProcess.c
modules/rostests/apitests/kernel32/DefaultActCtx.c
modules/rostests/apitests/kernel32/DeviceIoControl.c
modules/rostests/apitests/kernel32/FindActCtxSectionStringW.c
modules/rostests/apitests/kernel32/FindFiles.c
modules/rostests/apitests/kernel32/GetComputerNameEx.c
modules/rostests/apitests/kernel32/GetCurrentDirectory.c
modules/rostests/apitests/kernel32/GetDriveType.c
modules/rostests/apitests/kernel32/GetModuleFileName.c
modules/rostests/apitests/kernel32/GetVolumeInformation.c
modules/rostests/apitests/kernel32/IsDBCSLeadByteEx.c
modules/rostests/apitests/kernel32/LoadLibraryExW.c
modules/rostests/apitests/kernel32/Mailslot.c
modules/rostests/apitests/kernel32/MultiByteToWideChar.c
modules/rostests/apitests/kernel32/PrivMoveFileIdentityW.c
modules/rostests/apitests/kernel32/SetConsoleWindowInfo.c
modules/rostests/apitests/kernel32/SetCurrentDirectory.c
modules/rostests/apitests/kernel32/SetUnhandledExceptionFilter.c
modules/rostests/apitests/kernel32/TerminateProcess.c
modules/rostests/apitests/kernel32/TunnelCache.c
modules/rostests/apitests/kernel32/WideCharToMultiByte.c
modules/rostests/apitests/kernel32/dosdev.c
modules/rostests/apitests/kernel32/interlck.c
modules/rostests/apitests/kernel32/lstrcpynW.c
modules/rostests/apitests/kernel32/lstrlen.c
modules/rostests/apitests/kernel32/precomp.h [new file with mode: 0644]

index 86107d7..06edd1b 100644 (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
index 3263291..21dfd4b 100644 (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; \
index a9ef26f..f1d17d8 100644 (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)
 {
index 5794804..c5d7118 100644 (file)
  * 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)
 {
index be3086e..0a67899 100644 (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;
index 7b2ba3a..de2a075 100644 (file)
  * 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 */
 
index 52a031a..d4a0c6d 100644 (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:
index 1beb70c..3e93165 100644 (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
index c8aafb7..f3dcc26 100644 (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
index 657cf79..b6db1d9 100644 (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)
 
index 43c5ec3..ba1572c 100644 (file)
@@ -5,14 +5,8 @@
  * PROGRAMMER:      Thomas Faber <thomas.faber@reactos.org>
  */
 
-#include <apitest.h>
-
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-#include <stdio.h>
-#include <winreg.h>
-#include <winnls.h>
+#include "precomp.h"
+
 #include <shlwapi.h>
 
 static
index 7d2cf8b..5184f1c 100644 (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)
index 77548e5..f7fcfdb 100644 (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
 
index 2e8d6a1..7e32f18 100644 (file)
  * 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);
index 4cd701f..d2cc5d1 100644 (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)
index 00242a6..120ce60 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMER:      Mike "tamlin" Nordell
  */
 
-#include <apitest.h>
-
-#include <winnls.h>
+#include "precomp.h"
 
 START_TEST(MultiByteToWideChar)
 {
index 39fd0a1..fcc557c 100644 (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";
index 763e99a..46db2fa 100644 (file)
@@ -5,8 +5,7 @@
  * PROGRAMMER:      Hermes Belusca-Maito
  */
 
-#include <apitest.h>
-#include <wincon.h>
+#include "precomp.h"
 
 static VOID
 ResizeTextConsole(
index c19b968..f6f862d 100644 (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
index ddf6b3f..fb7e9f7 100644 (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>
 
 /*
index 1120bea..cdcfc43 100644 (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
index 74e2e5a..23632a7 100644 (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
index 34881ce..80b56a6 100644 (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)
 
index ce39324..36531c6 100644 (file)
  * 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:"
index e67fb5f..f205977 100644 (file)
  * 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)
 {
index a6e953b..6bc49c6 100644 (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)
 {
index 69db9ae..45dbc58 100644 (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)
 {
diff --git a/modules/rostests/apitests/kernel32/precomp.h b/modules/rostests/apitests/kernel32/precomp.h
new file mode 100644 (file)
index 0000000..cbc24c7
--- /dev/null
@@ -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_ */