Author: gd Date: 2007-11-02 14:18:07 +0000 (Fri, 02 Nov 2007) New Revision: 25807
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25807 Log: Close handle during winreg test. Guenther Modified: branches/SAMBA_4_0/source/torture/rpc/winreg.c Changeset: Modified: branches/SAMBA_4_0/source/torture/rpc/winreg.c =================================================================== --- branches/SAMBA_4_0/source/torture/rpc/winreg.c 2007-11-02 13:48:11 UTC (rev 25806) +++ branches/SAMBA_4_0/source/torture/rpc/winreg.c 2007-11-02 14:18:07 UTC (rev 25807) @@ -713,6 +713,10 @@ torture_fail(tctx, "CreateKey failed (OpenKey after Create didn't work)\n"); + if (created && !test_CloseKey(p, tctx, &newhandle)) + torture_fail(tctx, + "CreateKey failed (CloseKey after Open didn't work)\n"); + if (created && !test_DeleteKey(p, tctx, &handle, TEST_KEY1)) { torture_comment(tctx, "DeleteKey failed\n"); ret = false;