summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-04-09 17:50:51 +0200
committerGünther Deschner <gd@samba.org>2010-04-09 18:33:45 +0200
commit1cec3029e5ed5b6be3e7817c05d5f7214dfb4181 (patch)
tree6f6756e4d548ac40e891a5cd8e7f99ec1ee97992
parent347035d61f106a70c6d9cbf5c7a577a9fe104a05 (diff)
downloadsamba-1cec3029e5ed5b6be3e7817c05d5f7214dfb4181.tar.gz
samba-1cec3029e5ed5b6be3e7817c05d5f7214dfb4181.tar.bz2
samba-1cec3029e5ed5b6be3e7817c05d5f7214dfb4181.zip
s4-smbtorture: display helpful error message when winreg_QueryMultipleValues fails.
Guenther
-rw-r--r--source4/torture/rpc/winreg.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index ba82e88896..d7e1247e65 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -1601,7 +1601,6 @@ static bool test_QueryMultipleValues(struct dcerpc_binding_handle *b,
const char *valuename)
{
struct winreg_QueryMultipleValues r;
- NTSTATUS status;
uint32_t bufsize=0;
ZERO_STRUCT(r);
@@ -1621,10 +1620,9 @@ static bool test_QueryMultipleValues(struct dcerpc_binding_handle *b,
r.in.buffer = r.out.buffer = talloc_zero_array(tctx, uint8_t,
*r.in.buffer_size);
- status = dcerpc_winreg_QueryMultipleValues_r(b, tctx, &r);
-
- if(NT_STATUS_IS_ERR(status))
- torture_fail(tctx, "QueryMultipleValues failed");
+ torture_assert_ntstatus_ok(tctx,
+ dcerpc_winreg_QueryMultipleValues_r(b, tctx, &r),
+ "QueryMultipleValues failed");
talloc_free(r.in.buffer);
bufsize += 0x20;