From: Ralph Boehme Date: Mon, 11 Dec 2017 06:56:40 +0000 (+0100) Subject: s3/torture/pdbtest: delete trusted domain at test end X-Git-Tag: samba-4.8.0rc1~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8fde1c641da4ba23342bf36226ab9291a79acbad;p=thirdparty%2Fsamba.git s3/torture/pdbtest: delete trusted domain at test end Signed-off-by: Ralph Boehme --- diff --git a/source3/torture/pdbtest.c b/source3/torture/pdbtest.c index 71b5c61fc58..64bc45e6a7c 100644 --- a/source3/torture/pdbtest.c +++ b/source3/torture/pdbtest.c @@ -526,6 +526,13 @@ static bool test_trusted_domains(TALLOC_CTX *ctx, *error = true; } + rv = pdb->del_trusted_domain(pdb, TRUST_DOM); + if (!NT_STATUS_IS_OK(rv)) { + fprintf(stderr, "Error in del_trusted_domain %s\n", + get_friendly_nt_error_msg(rv)); + *error = true; + } + return true; }