git.samba.org
/
martins
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecbc2cd
)
r25807: Close handle during winreg test.
author
Günther Deschner
<gd@samba.org>
Fri, 2 Nov 2007 13:18:07 +0000
(14:18 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 21 Dec 2007 04:44:07 +0000
(
05:44
+0100)
Guenther
(This used to be commit
ca53f1fb5d7be9de92b9c573da477be599904843
)
source4/torture/rpc/winreg.c
patch
|
blob
|
history
diff --git
a/source4/torture/rpc/winreg.c
b/source4/torture/rpc/winreg.c
index 733d7f29582b91c8309d256fc698feeef1b06768..f6433f8ed598bb6e1b49b4a19aca246e48ee1429 100644
(file)
--- a/
source4/torture/rpc/winreg.c
+++ b/
source4/torture/rpc/winreg.c
@@
-713,6
+713,10
@@
static bool test_Open(struct torture_context *tctx, struct dcerpc_pipe *p,
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;