From 245630cf7ea1113ddd554f4ef1cda972c4c1c2c8 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 30 Nov 2007 09:53:20 +0100 Subject: r26215: Verify that test_NetrJoinDomain2() has suceeded. Guenther (This used to be commit 16ef4564b25e562b9eb0162541dd571ce14b4344) --- source4/torture/rpc/wkssvc.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source4') diff --git a/source4/torture/rpc/wkssvc.c b/source4/torture/rpc/wkssvc.c index 07361fc729..5722d6ddea 100644 --- a/source4/torture/rpc/wkssvc.c +++ b/source4/torture/rpc/wkssvc.c @@ -1275,6 +1275,18 @@ static bool test_NetrJoinDomain2(struct torture_context *tctx, "NetrJoinDomain2 failed"); torture_assert_werr_equal(tctx, r.out.result, expected_err, "NetrJoinDomain2 failed"); + + if (!test_GetJoinInformation(tctx, p, &join_status, &join_name)) + { + return false; + } + + if (join_status != NetSetupDomainName) { + torture_comment(tctx, + "Join verify failed: got %d\n", join_status); + return false; + } + return true; } -- cgit