[PATCH] rasenh/tests: Fix a test failure.

Zhiyi Zhang zzhang at codeweavers.com
Sun Jan 19 21:43:37 CST 2020


Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
---
Fix test failures like https://test.winehq.org/data/28ab23db56347f4e5c6c617ae35fbb6269f6e16a/win8_cw-rx460-32/rsaenh:rsaenh.html

 dlls/rsaenh/tests/rsaenh.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c
index 3e782be279..3039971474 100644
--- a/dlls/rsaenh/tests/rsaenh.c
+++ b/dlls/rsaenh/tests/rsaenh.c
@@ -2388,8 +2388,11 @@ static void test_rsa_encrypt(void)
 
     /* It is not allowed to use the signature key for encryption/decryption */
     result = CryptGetUserKey(hProv, AT_SIGNATURE, &hRSAKey);
-    ok (result, "%08x\n", GetLastError());
-    if (!result) return;
+    if (!result)
+    {
+        skip("No signature key in provider %s found, error %#x.\n", szProviders[iProv], GetLastError());
+        return;
+    }
 
     dwVal = 0xdeadbeef;
     dwLen = sizeof(DWORD);
-- 
2.20.1



More information about the wine-devel mailing list