summaryrefslogtreecommitdiffstats
path: root/src/tests/common.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-07-03 11:15:32 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-07-06 15:23:38 +0200
commiteca74a9559ce1b0f123c14906ad8394fc303f468 (patch)
tree279f1e9305be14ae49aefb7852753c6be0d67c3e /src/tests/common.h
parent537e277876a7e4b81e68eb3836586b1a765ba0dc (diff)
downloadsssd-eca74a9559ce1b0f123c14906ad8394fc303f468.tar.gz
sssd-eca74a9559ce1b0f123c14906ad8394fc303f468.tar.xz
sssd-eca74a9559ce1b0f123c14906ad8394fc303f468.zip
tests: Reduce duplication with new function test_ev_done
Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/tests/common.h')
-rw-r--r--src/tests/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/common.h b/src/tests/common.h
index 714be6988..0b351f5d6 100644
--- a/src/tests/common.h
+++ b/src/tests/common.h
@@ -112,6 +112,9 @@ errno_t test_request_recv(struct tevent_req *req);
int test_ev_loop(struct sss_test_ctx *tctx);
+/* Mark the test as done with an error code */
+void test_ev_done(struct sss_test_ctx *tctx, errno_t ret);
+
bool ldb_modules_path_is_set(void);
DBusConnection *