From a58945de8423d2310d8f4658cc589c8e3778274e Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Thu, 11 Sep 2008 02:42:30 -0500 Subject: [PATCH] mstask: Fix a few failing tests in win2k. --- dlls/mstask/tests/task.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dlls/mstask/tests/task.c b/dlls/mstask/tests/task.c index 46635ae7ad5..88a4fdf77de 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),