s4:torture/raw/session: make sure we got a reauth of the existing session
authorStefan Metzmacher <metze@samba.org>
Mon, 7 May 2012 09:32:32 +0000 (11:32 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 7 May 2012 22:50:55 +0000 (00:50 +0200)
metze

source4/torture/raw/session.c

index 66092d20f70d1c4e2c84d5cfe7cd389e85a0ef6f..34026936860f34fdb2dbdf42583737838142c022 100644 (file)
@@ -38,6 +38,7 @@ static bool test_session_reauth(struct torture_context *tctx,
        char fname[256];
        char buf[dlen+1];
        bool ok = true;
+       uint16_t vuid1 = cli->session->vuid;
 
        data = generate_random_str(tctx, dlen);
        torture_assert(tctx, (data != NULL), "memory allocation failed");
@@ -65,6 +66,7 @@ static bool test_session_reauth(struct torture_context *tctx,
        io.in.gensec_settings = lpcfg_gensec_settings(tctx, tctx->lp_ctx);
        status = smb_composite_sesssetup(cli->session, &io);
        torture_assert_ntstatus_ok_goto(tctx, status, ok, done, "setup2");
+       torture_assert_int_equal_goto(tctx, io.out.vuid, vuid1, ok, done, "setup2");
 
        num = smbcli_read(cli->tree, fnum, &buf, 0, dlen);
        torture_assert_int_equal_goto(tctx, num, dlen, ok, done, "read file");