r24895: Test for specific error.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 2 Sep 2007 15:02:17 +0000 (15:02 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:03:31 +0000 (15:03 -0500)
(This used to be commit 00d6dc85f5473ba7b27ed79ea55c8a4fe4d4fac8)

source4/torture/rpc/alter_context.c

index 34da133de8b378aab91871aea72ef3f224983f7d..f5e8282344650a2d679a1351fdc29aba569b62a8 100644 (file)
@@ -52,7 +52,8 @@ bool torture_rpc_alter_context(struct torture_context *torture)
        tmptbl.syntax_id.if_version += 100;
        torture_comment(torture, "Opening bad secondary connection\n");
        status = dcerpc_secondary_context(p, &p2, &tmptbl);
-       torture_assert_ntstatus_ok(torture, status, "dcerpc_alter_context with wrong version should fail");
+       torture_assert_ntstatus_equal(torture, status, NT_STATUS_RPC_UNSUPPORTED_NAME_SYNTAX,
+                                     "dcerpc_alter_context with wrong version should fail");
 
        torture_comment(torture, "testing DSSETUP pipe operations\n");
        ret &= test_DsRoleGetPrimaryDomainInformation(torture, p2);