diff options
author | Ondrej Kos <okos@redhat.com> | 2013-01-22 13:55:09 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-29 16:09:36 +0100 |
commit | 6478da8aa5349bf2df715f66eb24ec46b578b5a9 (patch) | |
tree | 5a72ecd425f805b223275650a3758f2c85435de7 /src/tests/sysdb-tests.c | |
parent | cc542ca566355d8dd71bca62e3c564243120455e (diff) | |
download | sssd-6478da8aa5349bf2df715f66eb24ec46b578b5a9.tar.gz sssd-6478da8aa5349bf2df715f66eb24ec46b578b5a9.tar.bz2 sssd-6478da8aa5349bf2df715f66eb24ec46b578b5a9.zip |
TESTS: Fix coverity issues 13126, 13127
https://fedorahosted.org/sssd/ticket/1763
Diffstat (limited to 'src/tests/sysdb-tests.c')
-rw-r--r-- | src/tests/sysdb-tests.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c index 0b042cbd..99d6213d 100644 --- a/src/tests/sysdb-tests.c +++ b/src/tests/sysdb-tests.c @@ -4363,8 +4363,12 @@ START_TEST(test_sysdb_svc_remove_alias) ret = sysdb_svc_remove_alias(test_ctx->sysdb, dn, aliases[1]); fail_if (ret != EOK, "[%s]", strerror(ret)); - sysdb_transaction_commit(test_ctx->sysdb); - sysdb_transaction_start(test_ctx->sysdb); + + ret = sysdb_transaction_commit(test_ctx->sysdb); + fail_if(ret != EOK); + + ret = sysdb_transaction_start(test_ctx->sysdb); + fail_if(ret != EOK); /* Set aliases[1] to NULL to perform validation checks */ aliases[1] = NULL; |