summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-11-30 09:53:20 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:46:55 +0100
commit245630cf7ea1113ddd554f4ef1cda972c4c1c2c8 (patch)
treeecee5549e47c012c453e4b6a28f2b1eb9e4e4135
parent82c18a40ffdbd61a7316e99f56d08d068ce5f8ec (diff)
downloadsamba-245630cf7ea1113ddd554f4ef1cda972c4c1c2c8.tar.gz
samba-245630cf7ea1113ddd554f4ef1cda972c4c1c2c8.tar.bz2
samba-245630cf7ea1113ddd554f4ef1cda972c4c1c2c8.zip
r26215: Verify that test_NetrJoinDomain2() has suceeded.
Guenther (This used to be commit 16ef4564b25e562b9eb0162541dd571ce14b4344)
-rw-r--r--source4/torture/rpc/wkssvc.c12
1 files changed, 12 insertions, 0 deletions
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;
}