s4-torture: Also print GID values in whoami test
authorAndrew Bartlett <abartlet@samba.org>
Thu, 12 Jul 2012 01:31:31 +0000 (11:31 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 19 Jul 2012 02:04:20 +0000 (04:04 +0200)
source4/torture/unix/whoami.c

index bce68759f95e98ef9b06faaa11523001630cedf2..2bfbc04481056bb3bcee3ad3b5884b56faf6da8e 100644 (file)
@@ -228,9 +228,12 @@ static bool smb_raw_query_posix_whoami(void *mem_ctx,
                whoami->gid_list = talloc_array(mem_ctx, uint64_t, whoami->num_gids);
                torture_assert(torture, whoami->gid_list != NULL, "out of memory");
 
+               torture_comment(torture, "\tGIDs:\n");
+               
                for (i = 0; i < whoami->num_gids; ++i) {
                        whoami->gid_list[i] = BVAL(tp.out.data.data, offset);
                        offset += 8;
+                       torture_comment(torture, "\t\t%u\n", (unsigned int)whoami->gid_list[i]);
                }
        }