schedsvc/tests: Early versions of Windows 10 return S_OK whether or not the element exists.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2017-01-23 11:01:46 +00:00 committed by Alexandre Julliard
parent b655102ca3
commit bdec0b2031
1 changed files with 3 additions and 1 deletions

View File

@ -148,7 +148,9 @@ START_TEST(rpcapi)
ok(hr == S_OK, "expected S_OK, got %#x\n", hr);
hr = SchRpcDelete(Wine, 0);
ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), "expected ERROR_FILE_NOT_FOUND, got %#x\n", hr);
ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) ||
broken(hr == S_OK), /* Early versions of Win 10 */
"expected ERROR_FILE_NOT_FOUND, got %#x\n", hr);
hr = SchRpcDelete(empty, 0);
ok(hr == E_ACCESSDENIED /* win7 */ || hr == E_INVALIDARG /* vista */, "expected E_ACCESSDENIED, got %#x\n", hr);