mirror of
https://github.com/reactos/reactos.git
synced 2025-06-05 01:10:26 +00:00
[NTPRINT_WINETEST]
* Sync with Wine 1.7.17. * Improve header inclusions. * Speedup build. * Remove redundant definitions. CORE-8080 svn path=/trunk/; revision=63068
This commit is contained in:
parent
ae78c69135
commit
515b241df5
3 changed files with 10 additions and 10 deletions
|
@ -1,10 +1,5 @@
|
||||||
|
|
||||||
add_definitions(
|
|
||||||
-D__ROS_LONG64__
|
|
||||||
-D_DLL -D__USE_CRTIMP)
|
|
||||||
|
|
||||||
add_executable(ntprint_winetest ntprint.c testlist.c)
|
add_executable(ntprint_winetest ntprint.c testlist.c)
|
||||||
target_link_libraries(ntprint_winetest wine)
|
|
||||||
set_module_type(ntprint_winetest win32cui)
|
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)
|
add_cd_file(TARGET ntprint_winetest DESTINATION reactos/bin FOR all)
|
||||||
|
|
|
@ -70,6 +70,10 @@ static void test_PSetupCreateMonitorInfo(VOID)
|
||||||
|
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
mi = pPSetupCreateMonitorInfo(NULL, NULL, NULL);
|
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());
|
ok( mi != NULL, "got %p with %u (expected '!= NULL')\n", mi, GetLastError());
|
||||||
if (mi) pPSetupDestroyMonitorInfo(mi);
|
if (mi) pPSetupDestroyMonitorInfo(mi);
|
||||||
|
|
||||||
|
@ -96,6 +100,10 @@ static void test_PSetupDestroyMonitorInfo(VOID)
|
||||||
|
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
mi = pPSetupCreateMonitorInfo(NULL, NULL, NULL);
|
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());
|
ok( mi != NULL, "got %p with %u (expected '!= NULL')\n", mi, GetLastError());
|
||||||
|
|
||||||
if (!mi) return;
|
if (!mi) return;
|
||||||
|
@ -105,7 +113,7 @@ static void test_PSetupDestroyMonitorInfo(VOID)
|
||||||
/* lasterror is returned */
|
/* lasterror is returned */
|
||||||
trace("returned with %u\n", GetLastError());
|
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) {
|
if (0) {
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
pPSetupDestroyMonitorInfo(mi);
|
pPSetupDestroyMonitorInfo(mi);
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
/* Automatically generated file; DO NOT EDIT!! */
|
/* Automatically generated file; DO NOT EDIT!! */
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
|
||||||
#include <windows.h>
|
|
||||||
|
|
||||||
#define STANDALONE
|
#define STANDALONE
|
||||||
#include "wine/test.h"
|
#include "wine/test.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue