Paul Vriens : uxtheme/tests: Extra testing for GetLastError.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jun 21 08:02:20 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 739f4187eb8380a16fd4a4e5011105ba465317e3
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=739f4187eb8380a16fd4a4e5011105ba465317e3
Author: Paul Vriens <Paul.Vriens at xs4all.nl>
Date: Wed Jun 21 11:37:20 2006 +0200
uxtheme/tests: Extra testing for GetLastError.
---
dlls/uxtheme/tests/system.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/dlls/uxtheme/tests/system.c b/dlls/uxtheme/tests/system.c
index 3aa5582..579c399 100644
--- a/dlls/uxtheme/tests/system.c
+++ b/dlls/uxtheme/tests/system.c
@@ -97,7 +97,12 @@ static void test_SetWindowTheme(void)
SetLastError(0xdeadbeef);
hRes = pSetWindowTheme(NULL, NULL, NULL);
todo_wine
+ {
ok( hRes == E_HANDLE, "Expected E_HANDLE, got 0x%08lx\n", hRes);
+ ok( GetLastError() == 0xdeadbeef,
+ "Expected 0xdeadbeef, got 0x%08lx\n",
+ GetLastError());
+ }
/* Only do the bare minumum to get a valid hwnd */
hWnd = CreateWindowExA(0, "static", "", WS_POPUP, 0,0,100,100,0, 0, 0, NULL);
@@ -106,6 +111,9 @@ static void test_SetWindowTheme(void)
SetLastError(0xdeadbeef);
hRes = pSetWindowTheme(hWnd, NULL, NULL);
ok( hRes == S_OK, "Expected S_OK, got 0x%08lx\n", hRes);
+ ok( GetLastError() == 0xdeadbeef,
+ "Expected 0xdeadbeef, got 0x%08lx\n",
+ GetLastError());
}
static void test_OpenThemeData(void)
@@ -118,7 +126,6 @@ static void test_OpenThemeData(void)
WCHAR szButtonClassList[] = {'B','u','t','t','o','n', 0 };
WCHAR szClassList[] = {'B','u','t','t','o','n',';','L','i','s','t','B','o','x', 0 };
- SetLastError(0xdeadbeef);
bThemeActive = pIsThemeActive();
/* All NULL */
More information about the wine-cvs
mailing list