diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-08-14 11:54:19 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-08-14 11:54:19 +1000 |
commit | cb98944be3fd24a9ee9c7b4cef3732e68a8c1627 (patch) | |
tree | 27510cecced2511a133d37fd96c2d2bb23d89a4b /source4/torture | |
parent | bf002d1173519a48bbcf00bfb9ec4164cea47d2c (diff) | |
download | samba-cb98944be3fd24a9ee9c7b4cef3732e68a8c1627.tar.gz samba-cb98944be3fd24a9ee9c7b4cef3732e68a8c1627.tar.bz2 samba-cb98944be3fd24a9ee9c7b4cef3732e68a8c1627.zip |
Assert on failure to join domain in NBT-DGRAM
(This used to be commit 0a8080d0f245ddf0177195dd8e7fb3e1cdc0785f)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/nbt/dgram.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/torture/nbt/dgram.c b/source4/torture/nbt/dgram.c index 665a08bd5c..eac2b1fe30 100644 --- a/source4/torture/nbt/dgram.c +++ b/source4/torture/nbt/dgram.c @@ -291,6 +291,10 @@ static bool nbt_test_netlogon2(struct torture_context *tctx) join_ctx = torture_join_domain(tctx, TEST_NAME, ACB_WSTRUST, &machine_credentials); + torture_assert(tctx, join_ctx != NULL, + talloc_asprintf(tctx, "Failed to join domain %s as %s\n", + lp_workgroup(tctx->lp_ctx), TEST_NAME)); + dom_sid = torture_join_sid(join_ctx); /* setup (another) temporary mailslot listener for replies */ |