s4:torture/rpc/handles: try to make all assoc_group tests less flakey
authorStefan Metzmacher <metze@samba.org>
Sat, 24 Nov 2012 10:28:57 +0000 (11:28 +0100)
committerStefan Metzmacher <metze@samba.org>
Sat, 24 Nov 2012 10:32:11 +0000 (11:32 +0100)
Just incrementing the assoc_group_id makes it too likely to hit
a number that is already in use.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source4/torture/rpc/handles.c

index 3fdce5672e28e0f4ba82aff3669895146ada8af0..9ac47399a4a6bef88aebac7e8040e42cd71c189c 100644 (file)
@@ -471,6 +471,7 @@ static bool test_handles_mixed_shared(struct torture_context *torture)
        torture_assert_ntstatus_equal(torture, status, NT_STATUS_UNSUCCESSFUL,
                                      "opening lsa pipe4");
 
+       assoc_group_id = ~assoc_group_id;
        torture_comment(torture, "connect samr pipe5 with assoc_group_id[0x%08X]- should fail\n", ++assoc_group_id);
        status = torture_rpc_connection_transport(torture, &p5, &ndr_table_samr,
                                                  transport,