Paul Vriens : mstask/tests: Skip tests for security services if they are not implemented.
Alexandre Julliard
julliard at winehq.org
Wed Aug 27 08:24:40 CDT 2008
Module: wine
Branch: master
Commit: 6cd32ffc07cd572290fcac1a18ed87b5e2687254
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6cd32ffc07cd572290fcac1a18ed87b5e2687254
Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date: Wed Aug 27 10:59:56 2008 +0200
mstask/tests: Skip tests for security services if they are not implemented.
---
dlls/mstask/tests/task.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/dlls/mstask/tests/task.c b/dlls/mstask/tests/task.c
index a5f2d0a..820b962 100644
--- a/dlls/mstask/tests/task.c
+++ b/dlls/mstask/tests/task.c
@@ -448,7 +448,14 @@ static void test_SetAccountInformation_GetAccountInformation(void)
/* Get account information before it is set */
hres = ITask_GetAccountInformation(test_task, &account_name);
/* WinXP returns HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND): 0x80070002 but
- * Win2K returns SCHED_E_CANNOT_OPEN_TASK: 0x8004130d */
+ * Win2K returns SCHED_E_CANNOT_OPEN_TASK: 0x8004130d
+ * Win9x doesn't support security services */
+ if (hres == SCHED_E_NO_SECURITY_SERVICES)
+ {
+ win_skip("Security services are not supported\n");
+ cleanup_task();
+ return;
+ }
ok(hres == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) ||
hres == SCHED_E_CANNOT_OPEN_TASK,
"Unset account name generated: 0x%08x\n", hres);
More information about the wine-cvs
mailing list