r26215: Verify that test_NetrJoinDomain2() has suceeded.
authorGünther Deschner <gd@samba.org>
Fri, 30 Nov 2007 08:53:20 +0000 (09:53 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:46:55 +0000 (05:46 +0100)
Guenther

source/torture/rpc/wkssvc.c

index 07361fc729504aba7bae840ad4b1438ac8681f44..5722d6ddead4b204a4bfc5147f8cdf6e02b81333 100644 (file)
@@ -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;
 }