diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2010-06-10 01:59:51 +0300 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2010-06-11 01:20:09 +0300 |
commit | 61e5ac4a5a1d4a2bb59297cd28288ef1460d1ea4 (patch) | |
tree | c81a32ea4361be6eeb408925092f1d1554dce8c3 | |
parent | 64a71d380cb88b19ecb8673dab07210514fc6a52 (diff) | |
download | samba-61e5ac4a5a1d4a2bb59297cd28288ef1460d1ea4.tar.gz samba-61e5ac4a5a1d4a2bb59297cd28288ef1460d1ea4.tar.bz2 samba-61e5ac4a5a1d4a2bb59297cd28288ef1460d1ea4.zip |
s4/test: Fix incorrect NTSTATUS comparison
In case group already exists, we should get NT_STATUS_GROUP_EXISTS.
-rw-r--r-- | source4/torture/libnet/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/libnet/utils.c b/source4/torture/libnet/utils.c index 4c4499cc81..dfc5923f2a 100644 --- a/source4/torture/libnet/utils.c +++ b/source4/torture/libnet/utils.c @@ -385,8 +385,8 @@ bool test_group_create(struct torture_context *tctx, if (!NT_STATUS_IS_OK(r.out.result)) { torture_comment(tctx, "CreateGroup failed - %s\n", nt_errstr(r.out.result)); - if (NT_STATUS_EQUAL(r.out.result, NT_STATUS_USER_EXISTS)) { - torture_comment(tctx, "Group (%s) already exists - attempting to delete and recreate account again\n", name); + if (NT_STATUS_EQUAL(r.out.result, NT_STATUS_GROUP_EXISTS)) { + torture_comment(tctx, "Group (%s) already exists - attempting to delete and recreate group again\n", name); if (!test_group_cleanup(tctx, b, mem_ctx, handle, name)) { return false; } |