mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 20:43:18 +00:00
[MSTASK_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68464
This commit is contained in:
parent
c4ea999155
commit
8d9feb25c4
1 changed files with 22 additions and 0 deletions
|
@ -203,6 +203,27 @@ static void test_SetTargetComputer(void)
|
|||
return;
|
||||
}
|
||||
|
||||
static void test_Enum(void)
|
||||
{
|
||||
ITaskScheduler *scheduler;
|
||||
IEnumWorkItems *tasks;
|
||||
HRESULT hr;
|
||||
|
||||
hr = CoCreateInstance(&CLSID_CTaskScheduler, NULL, CLSCTX_INPROC_SERVER,
|
||||
&IID_ITaskScheduler, (void **)&scheduler);
|
||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||
|
||||
if (0) { /* crashes on win2k */
|
||||
hr = ITaskScheduler_Enum(scheduler, NULL);
|
||||
ok(hr == E_INVALIDARG, "got 0x%08x\n", hr);
|
||||
}
|
||||
|
||||
hr = ITaskScheduler_Enum(scheduler, &tasks);
|
||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||
IEnumWorkItems_Release(tasks);
|
||||
|
||||
ITaskScheduler_Release(scheduler);
|
||||
}
|
||||
|
||||
START_TEST(task_scheduler)
|
||||
{
|
||||
|
@ -211,5 +232,6 @@ START_TEST(task_scheduler)
|
|||
test_Activate();
|
||||
test_GetTargetComputer();
|
||||
test_SetTargetComputer();
|
||||
test_Enum();
|
||||
CoUninitialize();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue