Paul Vriens : kernel32/tests: Fix tests on NT4.
Alexandre Julliard
julliard at winehq.org
Mon Sep 22 07:04:40 CDT 2008
Module: wine
Branch: master
Commit: e23904ceb9fae21f7c6d4819be27dd52e90fa8bf
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e23904ceb9fae21f7c6d4819be27dd52e90fa8bf
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Sat Sep 20 16:49:32 2008 +0200
kernel32/tests: Fix tests on NT4.
---
dlls/kernel32/tests/file.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/kernel32/tests/file.c b/dlls/kernel32/tests/file.c
index 1686a4a..70b2c0b 100644
--- a/dlls/kernel32/tests/file.c
+++ b/dlls/kernel32/tests/file.c
@@ -1560,12 +1560,16 @@ static void test_MapFile(void)
ok( GetLastError() == ERROR_FILE_INVALID, "not ERROR_FILE_INVALID\n");
hmap = CreateFileMapping( handle, NULL, PAGE_READWRITE, 0x80000000, 0, NULL );
- ok( hmap == NULL, "mapping should fail\n");
+ ok( hmap == NULL || broken(hmap != NULL) /* NT4 */, "mapping should fail\n");
/* GetLastError() varies between win9x and WinNT and also depends on the filesystem */
+ if ( hmap )
+ CloseHandle( hmap );
hmap = CreateFileMapping( handle, NULL, PAGE_READWRITE, 0x80000000, 0x10000, NULL );
- ok( hmap == NULL, "mapping should fail\n");
+ ok( hmap == NULL || broken(hmap != NULL) /* NT4 */, "mapping should fail\n");
/* GetLastError() varies between win9x and WinNT and also depends on the filesystem */
+ if ( hmap )
+ CloseHandle( hmap );
/* On XP you can now map again, on Win 95 you cannot. */
More information about the wine-cvs
mailing list