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

Alexandre Julliard julliard at winehq.org
Wed Jan 25 13:18:51 CST 2017


Module: wine
Branch: master
Commit: bdec0b20317b413514663c041ceac7f206ea4692
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bdec0b20317b413514663c041ceac7f206ea4692

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Jan 23 11:01:46 2017 +0000

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

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/schedsvc/tests/rpcapi.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dlls/schedsvc/tests/rpcapi.c b/dlls/schedsvc/tests/rpcapi.c
index 7aeea17..044118e 100644
--- a/dlls/schedsvc/tests/rpcapi.c
+++ b/dlls/schedsvc/tests/rpcapi.c
@@ -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);




More information about the wine-cvs mailing list