Hans Leidekker : rpcrt4: Avoid test failures on win9x.
Alexandre Julliard
julliard at winehq.org
Tue Dec 15 09:40:17 CST 2009
Module: wine
Branch: master
Commit: d95e58ba4debf07f2b7d1fd88737fbfc5a185628
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d95e58ba4debf07f2b7d1fd88737fbfc5a185628
Author: Hans Leidekker <hans at codeweavers.com>
Date: Tue Dec 15 09:50:10 2009 +0100
rpcrt4: Avoid test failures on win9x.
---
dlls/rpcrt4/tests/server.c | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/dlls/rpcrt4/tests/server.c b/dlls/rpcrt4/tests/server.c
index a871583..353d0cd 100644
--- a/dlls/rpcrt4/tests/server.c
+++ b/dlls/rpcrt4/tests/server.c
@@ -1337,11 +1337,6 @@ s_authinfo_test(unsigned int protseq, int secure)
if (secure || protseq == RPC_PROTSEQ_LRPC)
{
- status = RpcImpersonateClient(NULL);
- ok(status == RPC_S_OK, "expected RPC_S_OK got %u\n", status);
- status = RpcRevertToSelf();
- ok(status == RPC_S_OK, "expected RPC_S_OK got %u\n", status);
-
status = RpcBindingInqAuthClientA(binding, &privs, &principal, &level, &authnsvc, NULL);
ok(status == RPC_S_OK, "expected RPC_S_OK got %u\n", status);
ok(privs != (RPC_AUTHZ_HANDLE)0xdeadbeef, "privs unchanged\n");
@@ -1365,6 +1360,17 @@ s_authinfo_test(unsigned int protseq, int secure)
}
ok(level == RPC_C_AUTHN_LEVEL_PKT_PRIVACY, "level unchanged\n");
ok(authnsvc == RPC_C_AUTHN_WINNT, "authnsvc unchanged\n");
+
+ status = RpcImpersonateClient(NULL);
+ if (status == RPC_S_CANNOT_SUPPORT)
+ {
+ win_skip("RpcImpersonateClient not supported\n");
+ return;
+ }
+ ok(status == RPC_S_OK, "expected RPC_S_OK got %u\n", status);
+ status = RpcRevertToSelf();
+ ok(status == RPC_S_OK, "expected RPC_S_OK got %u\n", status);
+
}
else
{
More information about the wine-cvs
mailing list