smbtorture: Show the list of cracknames we expect to have and the result
authorMatthieu Patou <mat@samba.org>
Fri, 17 May 2013 15:14:29 +0000 (17:14 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 20 May 2013 11:54:07 +0000 (21:54 +1000)
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/rpc/drsuapi_cracknames.c

index d896db8a2b831c914897ab1cc467ee06dc1e0864..f71910a3a615ee6bf2dcdf3e206e3bde77eb123d 100644 (file)
@@ -912,6 +912,9 @@ bool test_DsCrackNames(struct torture_context *tctx,
                int i;
                
                for (i=0; i < ARRAY_SIZE(crack); i++) {
+                       torture_comment(tctx, "Testing DsCrackNames with name '%s' desired format:%d\n",
+                                       crack[i].str, crack[i].format_desired);
+
                        const char *comment;
                        r.in.req->req1.format_flags   = crack[i].flags;
                        r.in.req->req1.format_offered = crack[i].format_offered;
@@ -997,6 +1000,8 @@ bool test_DsCrackNames(struct torture_context *tctx,
                                                crack[i].expected_str, comment);
                                torture_fail(tctx, err_msg);
                        }
+
+                       torture_comment(tctx, "Testing DsCrackNames got %s\n", r.out.ctr->ctr1->array[0].result_name);
                }
        }