From c68cba36aabd816fcf70fc800eb36e54a3164d55 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 7 May 2012 11:32:32 +0200 Subject: s4:torture/raw/session: make sure we got a reauth of the existing session metze --- source4/torture/raw/session.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/torture') diff --git a/source4/torture/raw/session.c b/source4/torture/raw/session.c index 66092d20f7..3402693686 100644 --- a/source4/torture/raw/session.c +++ b/source4/torture/raw/session.c @@ -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"); -- cgit