From 515b241df5dc51623ed6d005657a7efe3055948e Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Wed, 30 Apr 2014 12:44:28 +0000 Subject: [PATCH] [NTPRINT_WINETEST] * Sync with Wine 1.7.17. * Improve header inclusions. * Speedup build. * Remove redundant definitions. CORE-8080 svn path=/trunk/; revision=63068 --- rostests/winetests/ntprint/CMakeLists.txt | 7 +------ rostests/winetests/ntprint/ntprint.c | 10 +++++++++- rostests/winetests/ntprint/testlist.c | 3 --- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/rostests/winetests/ntprint/CMakeLists.txt b/rostests/winetests/ntprint/CMakeLists.txt index 3ff4a90b80b..ffa8c9158e6 100644 --- a/rostests/winetests/ntprint/CMakeLists.txt +++ b/rostests/winetests/ntprint/CMakeLists.txt @@ -1,10 +1,5 @@ -add_definitions( - -D__ROS_LONG64__ - -D_DLL -D__USE_CRTIMP) - add_executable(ntprint_winetest ntprint.c testlist.c) -target_link_libraries(ntprint_winetest wine) set_module_type(ntprint_winetest win32cui) -add_importlibs(ntprint_winetest msvcrt kernel32 ntdll) +add_importlibs(ntprint_winetest msvcrt kernel32) add_cd_file(TARGET ntprint_winetest DESTINATION reactos/bin FOR all) diff --git a/rostests/winetests/ntprint/ntprint.c b/rostests/winetests/ntprint/ntprint.c index cf9853d58de..e0bc01ed850 100644 --- a/rostests/winetests/ntprint/ntprint.c +++ b/rostests/winetests/ntprint/ntprint.c @@ -70,6 +70,10 @@ static void test_PSetupCreateMonitorInfo(VOID) SetLastError(0xdeadbeef); mi = pPSetupCreateMonitorInfo(NULL, NULL, NULL); + if (!mi && (GetLastError() == RPC_S_SERVER_UNAVAILABLE)) { + win_skip("The service 'Spooler' is required for many tests\n"); + return; + } ok( mi != NULL, "got %p with %u (expected '!= NULL')\n", mi, GetLastError()); if (mi) pPSetupDestroyMonitorInfo(mi); @@ -96,6 +100,10 @@ static void test_PSetupDestroyMonitorInfo(VOID) SetLastError(0xdeadbeef); mi = pPSetupCreateMonitorInfo(NULL, NULL, NULL); + if (!mi && (GetLastError() == RPC_S_SERVER_UNAVAILABLE)) { + win_skip("The service 'Spooler' is required for many tests\n"); + return; + } ok( mi != NULL, "got %p with %u (expected '!= NULL')\n", mi, GetLastError()); if (!mi) return; @@ -105,7 +113,7 @@ static void test_PSetupDestroyMonitorInfo(VOID) /* lasterror is returned */ trace("returned with %u\n", GetLastError()); - /* Try to destroy the handle twice crash with native ntprint.dll */ + /* Trying to destroy the handle twice crashes with native ntprint.dll */ if (0) { SetLastError(0xdeadbeef); pPSetupDestroyMonitorInfo(mi); diff --git a/rostests/winetests/ntprint/testlist.c b/rostests/winetests/ntprint/testlist.c index 25fb277033c..1e11b97b466 100644 --- a/rostests/winetests/ntprint/testlist.c +++ b/rostests/winetests/ntprint/testlist.c @@ -1,8 +1,5 @@ /* Automatically generated file; DO NOT EDIT!! */ -#define WIN32_LEAN_AND_MEAN -#include - #define STANDALONE #include "wine/test.h"