From 1cec3029e5ed5b6be3e7817c05d5f7214dfb4181 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 9 Apr 2010 17:50:51 +0200 Subject: s4-smbtorture: display helpful error message when winreg_QueryMultipleValues fails. Guenther --- source4/torture/rpc/winreg.c | 8 +++----- 1 file 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; -- cgit