Author: akhaldi
Date: Sun Jul 19 23:06:14 2015
New Revision: 68464
URL:
http://svn.reactos.org/svn/reactos?rev=68464&view=rev
Log:
[MSTASK_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
Modified:
trunk/rostests/winetests/mstask/task_scheduler.c
Modified: trunk/rostests/winetests/mstask/task_scheduler.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/mstask/task_sch…
==============================================================================
--- trunk/rostests/winetests/mstask/task_scheduler.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/mstask/task_scheduler.c [iso-8859-1] Sun Jul 19 23:06:14
2015
@@ -203,6 +203,27 @@
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 @@
test_Activate();
test_GetTargetComputer();
test_SetTargetComputer();
+ test_Enum();
CoUninitialize();
}