mirror of
https://github.com/reactos/reactos.git
synced 2025-05-08 03:07:05 +00:00
[MSTASK_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74820
This commit is contained in:
parent
4988f293f8
commit
7a5517640f
1 changed files with 6 additions and 0 deletions
|
@ -184,6 +184,11 @@ static void test_SetTargetComputer(void)
|
||||||
|
|
||||||
/* the two backslashes are optional */
|
/* the two backslashes are optional */
|
||||||
hres = ITaskScheduler_SetTargetComputer(test_task_scheduler, oldname + 2);
|
hres = ITaskScheduler_SetTargetComputer(test_task_scheduler, oldname + 2);
|
||||||
|
if (hres == E_ACCESSDENIED)
|
||||||
|
{
|
||||||
|
skip("SetTargetComputer failed with E_ACCESSDENIED (needs admin rights)\n");
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
ok(hres == S_OK, "got 0x%x (expected S_OK)\n", hres);
|
ok(hres == S_OK, "got 0x%x (expected S_OK)\n", hres);
|
||||||
|
|
||||||
/* the case is ignored */
|
/* the case is ignored */
|
||||||
|
@ -198,6 +203,7 @@ static void test_SetTargetComputer(void)
|
||||||
hres = ITaskScheduler_SetTargetComputer(test_task_scheduler, oldname);
|
hres = ITaskScheduler_SetTargetComputer(test_task_scheduler, oldname);
|
||||||
ok(hres == S_OK, "got 0x%x (expected S_OK)\n", hres);
|
ok(hres == S_OK, "got 0x%x (expected S_OK)\n", hres);
|
||||||
|
|
||||||
|
done:
|
||||||
CoTaskMemFree(oldname);
|
CoTaskMemFree(oldname);
|
||||||
ITaskScheduler_Release(test_task_scheduler);
|
ITaskScheduler_Release(test_task_scheduler);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue