Author: abartlet Date: 2006-05-07 18:09:54 +0000 (Sun, 07 May 2006) New Revision: 15499
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15499 Log: This test can't run if the remote server won't let us open a policy handle. Andrew Bartlett Modified: branches/SAMBA_4_0/source/torture/rpc/session_key.c Changeset: Modified: branches/SAMBA_4_0/source/torture/rpc/session_key.c =================================================================== --- branches/SAMBA_4_0/source/torture/rpc/session_key.c 2006-05-07 18:08:57 UTC (rev 15498) +++ branches/SAMBA_4_0/source/torture/rpc/session_key.c 2006-05-07 18:09:54 UTC (rev 15499) @@ -180,8 +180,11 @@ } if (test_lsa_OpenPolicy2(p, mem_ctx, &handle)) { - if (!test_CreateSecret_basic(p, mem_ctx, handle)) { + if (!handle) { + printf("OpenPolicy2 failed. This test cannot run against this server\n"); ret = False; + } else if (!test_CreateSecret_basic(p, mem_ctx, handle)) { + ret = False; } } else { return False;