James Hawkins : mstask: Fix a few failing tests in win2k.
Alexandre Julliard
julliard at winehq.org
Thu Sep 11 08:00:25 CDT 2008
Module: wine
Branch: master
Commit: a58945de8423d2310d8f4658cc589c8e3778274e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a58945de8423d2310d8f4658cc589c8e3778274e
Author: James Hawkins <jhawkins at codeweavers.com>
Date: Thu Sep 11 02:42:30 2008 -0500
mstask: Fix a few failing tests in win2k.
---
dlls/mstask/tests/task.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/dlls/mstask/tests/task.c b/dlls/mstask/tests/task.c
index 46635ae..88a4fdf 100644
--- a/dlls/mstask/tests/task.c
+++ b/dlls/mstask/tests/task.c
@@ -466,7 +466,9 @@ static void test_SetAccountInformation_GetAccountInformation(void)
ok(hres == S_OK,
"Failed setting dummy account with no password: %08x\n", hres);
hres = ITask_GetAccountInformation(test_task, &account_name);
- ok(hres == S_OK, "GetAccountInformation failed: %08x\n", hres);
+ ok(hres == S_OK ||
+ broken(hres == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)),
+ "GetAccountInformation failed: %08x\n", hres);
if (hres == S_OK)
{
ok(!lstrcmpW(account_name, dummy_account_name),
@@ -482,7 +484,9 @@ static void test_SetAccountInformation_GetAccountInformation(void)
ok(hres == S_OK,
"Failed setting dummy account with password: %08x\n", hres);
hres = ITask_GetAccountInformation(test_task, &account_name);
- ok(hres == S_OK, "GetAccountInformation failed: %08x\n", hres);
+ ok(hres == S_OK ||
+ broken(hres == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)),
+ "GetAccountInformation failed: %08x\n", hres);
if (hres == S_OK)
{
ok(!lstrcmpW(account_name, dummy_account_name_b),
@@ -495,7 +499,9 @@ static void test_SetAccountInformation_GetAccountInformation(void)
hres = ITask_SetAccountInformation(test_task, empty, NULL);
ok(hres == S_OK, "Failed setting system account: %08x\n", hres);
hres = ITask_GetAccountInformation(test_task, &account_name);
- ok(hres == S_OK, "GetAccountInformation failed: %08x\n", hres);
+ ok(hres == S_OK ||
+ broken(hres == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)),
+ "GetAccountInformation failed: %08x\n", hres);
if (hres == S_OK)
{
ok(!lstrcmpW(account_name, empty),
More information about the wine-cvs
mailing list