diff options
author | Ondrej Kos <okos@redhat.com> | 2013-01-22 15:10:31 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-29 16:11:18 +0100 |
commit | c931d373501bff1d7386a6f7f5c955380d3a61ed (patch) | |
tree | 917ac5822d2a236cae5382e8bc0a6564f55e9574 /src/tests | |
parent | 6478da8aa5349bf2df715f66eb24ec46b578b5a9 (diff) | |
download | sssd-c931d373501bff1d7386a6f7f5c955380d3a61ed.tar.gz sssd-c931d373501bff1d7386a6f7f5c955380d3a61ed.tar.bz2 sssd-c931d373501bff1d7386a6f7f5c955380d3a61ed.zip |
TESTS: include error message on fail
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/sysdb-tests.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c index 99d6213d..42331297 100644 --- a/src/tests/sysdb-tests.c +++ b/src/tests/sysdb-tests.c @@ -4145,7 +4145,7 @@ START_TEST(test_sysdb_add_services) protocols[2] = NULL; ret = sysdb_transaction_start(test_ctx->sysdb); - fail_if(ret != EOK); + fail_if(ret != EOK, "[%s]", strerror(ret)); ret = sysdb_svc_add(NULL, test_ctx->sysdb, test_ctx->domain, primary_name, port, @@ -4164,7 +4164,7 @@ START_TEST(test_sysdb_add_services) aliases, protocols); ret = sysdb_transaction_commit(test_ctx->sysdb); - fail_if (ret != EOK); + fail_if(ret != EOK, "[%s]", strerror(ret)); /* Clean up after ourselves (and test deleting by name) * @@ -4174,7 +4174,7 @@ START_TEST(test_sysdb_add_services) */ ret = sysdb_svc_delete(test_ctx->sysdb, test_ctx->domain, primary_name, 0, NULL); - fail_if(ret != EOK); + fail_if(ret != EOK, "[%s]", strerror(ret)); talloc_free(test_ctx); } @@ -4218,14 +4218,14 @@ START_TEST(test_sysdb_store_services) protocols[2] = NULL; ret = sysdb_transaction_start(test_ctx->sysdb); - fail_if(ret != EOK); + fail_if(ret != EOK, "[%s]", strerror(ret)); /* Store this group (which will add it) */ ret = sysdb_store_service(test_ctx->sysdb, test_ctx->domain, primary_name, port, aliases, protocols, NULL, NULL, 1, 1); - fail_if (ret != EOK); + fail_if(ret != EOK, "[%s]", strerror(ret)); /* Search by name and make sure the results match */ services_check_match_name(test_ctx, @@ -4291,7 +4291,7 @@ START_TEST(test_sysdb_store_services) */ ret = sysdb_svc_delete(test_ctx->sysdb, test_ctx->domain, NULL, altport, NULL); - fail_if(ret != EOK); + fail_if(ret != EOK, "[%s]", strerror(ret)); talloc_free(test_ctx); } @@ -4339,7 +4339,7 @@ START_TEST(test_sysdb_svc_remove_alias) protocols[2] = NULL; ret = sysdb_transaction_start(test_ctx->sysdb); - fail_if(ret != EOK); + fail_if(ret != EOK, "[%s]", strerror(ret)); ret = sysdb_svc_add(NULL, test_ctx->sysdb, test_ctx->domain, primary_name, port, @@ -4384,7 +4384,7 @@ START_TEST(test_sysdb_svc_remove_alias) aliases, protocols); ret = sysdb_transaction_commit(test_ctx->sysdb); - fail_if(ret != EOK); + fail_if(ret != EOK, "[%s]", strerror(ret)); talloc_free(test_ctx); } |