Reactos

[KERNEL32_APITEST] Add a PCH.

+43 -120
+4 -3
modules/rostests/apitests/kernel32/CMakeLists.txt
··· 19 19 LoadLibraryExW.c 20 20 lstrcpynW.c 21 21 lstrlen.c 22 + Mailslot.c 22 23 MultiByteToWideChar.c 23 24 PrivMoveFileIdentityW.c 24 25 SetConsoleWindowInfo.c ··· 27 28 TerminateProcess.c 28 29 TunnelCache.c 29 30 WideCharToMultiByte.c 30 - testlist.c 31 - Mailslot.c) 31 + precomp.h) 32 32 33 - add_executable(kernel32_apitest ${SOURCE}) 33 + add_executable(kernel32_apitest ${SOURCE} testlist.c) 34 34 target_link_libraries(kernel32_apitest wine ${PSEH_LIB}) 35 35 set_module_type(kernel32_apitest win32cui) 36 36 add_delay_importlibs(kernel32_apitest advapi32 shlwapi) 37 37 add_importlibs(kernel32_apitest msvcrt kernel32 ntdll) 38 + add_pch(kernel32_apitest precomp.h SOURCE) 38 39 add_rostests_file(TARGET kernel32_apitest) 39 40 40 41 list(APPEND MANIFEST_FILES
+1 -3
modules/rostests/apitests/kernel32/Console.c
··· 5 5 * PROGRAMMERS: Katayama Hirofumi MZ 6 6 */ 7 7 8 - #include <apitest.h> 9 - #include <wincon.h> 10 - #include <winnls.h> 8 + #include "precomp.h" 11 9 12 10 #define okCURSOR(hCon, c) do { \ 13 11 CONSOLE_SCREEN_BUFFER_INFO __sbi; \
+2 -3
modules/rostests/apitests/kernel32/CreateProcess.c
··· 5 5 * PROGRAMMERS: Mark Jansen 6 6 */ 7 7 8 - #include <apitest.h> 9 - #include <ndk/rtltypes.h> 8 + #include "precomp.h" 9 + 10 10 #include <ndk/rtlfuncs.h> 11 - 12 11 13 12 START_TEST(CreateProcess) 14 13 {
+1 -8
modules/rostests/apitests/kernel32/DefaultActCtx.c
··· 18 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 19 19 */ 20 20 21 - 22 - #include <stdarg.h> 23 - #include <stdio.h> 24 - 25 - #include "wine/test.h" 26 - #include "windef.h" 27 - #include "winbase.h" 28 - #include "winerror.h" 21 + #include "precomp.h" 29 22 30 23 START_TEST(DefaultActCtx) 31 24 {
+2 -3
modules/rostests/apitests/kernel32/DeviceIoControl.c
··· 5 5 * PROGRAMMER: Pierre Schweitzer <pierre@reactos.org> 6 6 */ 7 7 8 - #include <apitest.h> 9 - #include <strsafe.h> 8 + #include "precomp.h" 9 + 10 10 #include <winioctl.h> 11 - #include <mountmgr.h> 12 11 #include <mountdev.h> 13 12 14 13 WCHAR Letter;
+1 -7
modules/rostests/apitests/kernel32/FindActCtxSectionStringW.c
··· 18 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 19 19 */ 20 20 21 - #include <stdarg.h> 22 - #include <stdio.h> 23 - 24 - #include "wine/test.h" 25 - #include "windef.h" 26 - #include "winbase.h" 27 - #include "winerror.h" 21 + #include "precomp.h" 28 22 29 23 #define STRSECTION_MAGIC 0x64487353 /* dHsS */ 30 24
+1 -3
modules/rostests/apitests/kernel32/FindFiles.c
··· 5 5 * PROGRAMMER: Hermès BÉLUSCA - MAÏTO 6 6 */ 7 7 8 - #include <apitest.h> 9 - 10 - #include <windows.h> 8 + #include "precomp.h" 11 9 12 10 /* 13 11 * NOTE: This test supposes the following requirements:
+1 -6
modules/rostests/apitests/kernel32/GetComputerNameEx.c
··· 5 5 * PROGRAMMER: Thomas Faber <thomas.faber@reactos.org> 6 6 */ 7 7 8 - #include <apitest.h> 9 - 10 - #define WIN32_NO_STATUS 11 - #include <stdio.h> 12 - #include <ndk/rtltypes.h> 13 - #include <winreg.h> 8 + #include "precomp.h" 14 9 15 10 static 16 11 VOID
+1 -5
modules/rostests/apitests/kernel32/GetCurrentDirectory.c
··· 5 5 * PROGRAMMER: Thomas Faber <thomas.faber@reactos.org> 6 6 */ 7 7 8 - #include <apitest.h> 9 - 10 - #define WIN32_NO_STATUS 11 - #include <stdio.h> 12 - #include <ndk/rtltypes.h> 8 + #include "precomp.h" 13 9 14 10 static 15 11 BOOLEAN
+1 -2
modules/rostests/apitests/kernel32/GetDriveType.c
··· 1 - #include <apitest.h> 2 - #include <strsafe.h> 1 + #include "precomp.h" 3 2 4 3 #define IS_DRIVE_TYPE_VALID(type) ((type) != DRIVE_UNKNOWN && (type) != DRIVE_NO_ROOT_DIR) 5 4
+1 -7
modules/rostests/apitests/kernel32/GetModuleFileName.c
··· 5 5 * PROGRAMMER: Thomas Faber <thomas.faber@reactos.org> 6 6 */ 7 7 8 - #include <apitest.h> 8 + #include "precomp.h" 9 9 10 - #define WIN32_NO_STATUS 11 - #define _INC_WINDOWS 12 - #define COM_NO_WINDOWS_H 13 - #include <stdio.h> 14 - #include <winreg.h> 15 - #include <winnls.h> 16 10 #include <shlwapi.h> 17 11 18 12 static
+1 -4
modules/rostests/apitests/kernel32/GetVolumeInformation.c
··· 5 5 * PROGRAMMER: Pierre Schweitzer <pierre@reactos.org> 6 6 */ 7 7 8 - #include <apitest.h> 9 - 10 - #define WIN32_NO_STATUS 11 - #include <stdio.h> 8 + #include "precomp.h" 12 9 13 10 static VOID 14 11 TestGetVolumeInformationA(VOID)
+1 -7
modules/rostests/apitests/kernel32/IsDBCSLeadByteEx.c
··· 5 5 * PROGRAMMER: Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com> 6 6 */ 7 7 8 - #include <apitest.h> 9 - 10 - #define WIN32_NO_STATUS 11 - #define _INC_WINDOWS 12 - #define COM_NO_WINDOWS_H 13 - #include <stdio.h> 14 - #include <winnls.h> 8 + #include "precomp.h" 15 9 16 10 #define MAX_RANGE 4 17 11
+1 -7
modules/rostests/apitests/kernel32/LoadLibraryExW.c
··· 16 16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 17 17 */ 18 18 19 - #include <stdarg.h> 20 - #include <stdio.h> 21 - 22 - #include "wine/test.h" 23 - #include "windef.h" 24 - #include "winbase.h" 25 - #include "winerror.h" 19 + #include "precomp.h" 26 20 27 21 HANDLE _CreateActCtxFromFile(LPCWSTR FileName, int line); 28 22 VOID _ActivateCtx(HANDLE h, ULONG_PTR *cookie, int line);
+1 -4
modules/rostests/apitests/kernel32/Mailslot.c
··· 5 5 * PROGRAMMER: Nikita Pechenkin (n.pechenkin@mail.ru) 6 6 */ 7 7 8 - #include <apitest.h> 9 - 10 - #define WIN32_NO_STATUS 11 - #include <stdio.h> 8 + #include "precomp.h" 12 9 13 10 #define LMS TEXT("\\\\.\\mailslot\\rostest_slot") 14 11 #define MSG (0x50DA)
+1 -3
modules/rostests/apitests/kernel32/MultiByteToWideChar.c
··· 5 5 * PROGRAMMER: Mike "tamlin" Nordell 6 6 */ 7 7 8 - #include <apitest.h> 9 - 10 - #include <winnls.h> 8 + #include "precomp.h" 11 9 12 10 START_TEST(MultiByteToWideChar) 13 11 {
+1 -3
modules/rostests/apitests/kernel32/PrivMoveFileIdentityW.c
··· 5 5 * PROGRAMMER: Pierre Schweitzer <pierre@reactos.org> 6 6 */ 7 7 8 - #include <apitest.h> 8 + #include "precomp.h" 9 9 10 - #define WIN32_NO_STATUS 11 10 #include <ndk/iofuncs.h> 12 - #include <ndk/rtltypes.h> 13 11 14 12 static const WCHAR FileName[] = L"TestFile.xxx"; 15 13 static const CHAR FileNameA[] = "TestFile.xxx";
+1 -2
modules/rostests/apitests/kernel32/SetConsoleWindowInfo.c
··· 5 5 * PROGRAMMER: Hermes Belusca-Maito 6 6 */ 7 7 8 - #include <apitest.h> 9 - #include <wincon.h> 8 + #include "precomp.h" 10 9 11 10 static VOID 12 11 ResizeTextConsole(
+1 -5
modules/rostests/apitests/kernel32/SetCurrentDirectory.c
··· 5 5 * PROGRAMMER: Thomas Faber <thomas.faber@reactos.org> 6 6 */ 7 7 8 - #include <apitest.h> 9 - 10 - #define WIN32_NO_STATUS 11 - #include <stdio.h> 12 - #include <ndk/rtltypes.h> 8 + #include "precomp.h" 13 9 14 10 static 15 11 VOID
+1 -4
modules/rostests/apitests/kernel32/SetUnhandledExceptionFilter.c
··· 5 5 * PROGRAMMER: Mike "tamlin" Nordell 6 6 */ 7 7 8 - #include <apitest.h> 8 + #include "precomp.h" 9 9 10 - #define WIN32_NO_STATUS 11 - #include <stdio.h> 12 - #include <ndk/rtltypes.h> 13 10 #include <xmmintrin.h> 14 11 15 12 /*
+1 -2
modules/rostests/apitests/kernel32/TerminateProcess.c
··· 5 5 * PROGRAMMER: Thomas Faber <thomas.faber@reactos.org> 6 6 */ 7 7 8 - #include <apitest.h> 8 + #include "precomp.h" 9 9 10 10 #include <ndk/obfuncs.h> 11 - #include <strsafe.h> 12 11 13 12 static 14 13 HANDLE
+1 -5
modules/rostests/apitests/kernel32/TunnelCache.c
··· 5 5 * PROGRAMMER: Pierre Schweitzer <pierre.schweitzer@reactos.org> 6 6 */ 7 7 8 - #include <apitest.h> 9 - 10 - #define WIN32_NO_STATUS 11 - #include <stdio.h> 12 - #include <ndk/rtlfuncs.h> 8 + #include "precomp.h" 13 9 14 10 static 15 11 void
+1 -3
modules/rostests/apitests/kernel32/WideCharToMultiByte.c
··· 5 5 * PROGRAMMER: Thomas Faber <thomas.faber@reactos.org> 6 6 */ 7 7 8 - #include <apitest.h> 9 - 10 - #include <winnls.h> 8 + #include "precomp.h" 11 9 12 10 #define ntv6(x) (LOBYTE(LOWORD(GetVersion())) >= 6 ? (x) : 0) 13 11
+1 -7
modules/rostests/apitests/kernel32/dosdev.c
··· 18 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 19 19 */ 20 20 21 - #include <stdarg.h> 22 - #include <stdio.h> 23 - 24 - #include "wine/test.h" 25 - #include "windef.h" 26 - #include "winbase.h" 27 - #include "winerror.h" 21 + #include "precomp.h" 28 22 29 23 #define SUBST_DRIVE_LETTER 'M' 30 24 #define SUBST_DRIVE "M:"
+1 -6
modules/rostests/apitests/kernel32/interlck.c
··· 18 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 19 */ 20 20 21 - #include <stdarg.h> 22 - 23 - #include "wine/test.h" 24 - #include "windef.h" 25 - #include "winbase.h" 26 - #include "winerror.h" 21 + #include "precomp.h" 27 22 28 23 static void test_InterlockedCompareExchange(void) 29 24 {
+1 -4
modules/rostests/apitests/kernel32/lstrcpynW.c
··· 4 4 * PURPOSE: Test for lstrcpynW 5 5 */ 6 6 7 - #include <apitest.h> 8 - 9 - #define WIN32_NO_STATUS 10 - #include <stdio.h> 7 + #include "precomp.h" 11 8 12 9 START_TEST(lstrcpynW) 13 10 {
+1 -4
modules/rostests/apitests/kernel32/lstrlen.c
··· 5 5 * PROGRAMMER: Hermes Belusca-Maito 6 6 */ 7 7 8 - #include <apitest.h> 9 - 10 - #define WIN32_NO_STATUS 11 - #include <stdio.h> 8 + #include "precomp.h" 12 9 13 10 LONG WINAPI VEHandler_1(PEXCEPTION_POINTERS ExceptionInfo) 14 11 {
+11
modules/rostests/apitests/kernel32/precomp.h
··· 1 + #ifndef _KERNEL32_APITEST_PRECOMP_H_ 2 + #define _KERNEL32_APITEST_PRECOMP_H_ 3 + 4 + #include <apitest.h> 5 + #include <wincon.h> 6 + #include <winnls.h> 7 + #include <winreg.h> 8 + #include <strsafe.h> 9 + #include <ndk/umtypes.h> 10 + 11 + #endif /* _KERNEL32_APITEST_PRECOMP_H_ */