From: Amitay Isaacs Date: Mon, 1 Aug 2016 04:23:23 +0000 (+1000) Subject: ctdb-tests: Log errors if the test fails X-Git-Tag: tevent-0.9.30~178 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=415a3a56b48ef22fef3680cc4f5f41fe56c671f2;p=thirdparty%2Fsamba.git ctdb-tests: Log errors if the test fails Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke Autobuild-User(master): Martin Schwenke Autobuild-Date(master): Wed Aug 10 08:17:13 CEST 2016 on sn-devel-144 --- diff --git a/ctdb/tests/src/transaction_loop.c b/ctdb/tests/src/transaction_loop.c index 3b325fd384d..0fd2953d1a1 100644 --- a/ctdb/tests/src/transaction_loop.c +++ b/ctdb/tests/src/transaction_loop.c @@ -162,6 +162,7 @@ static void transaction_loop_started(struct tevent_req *subreq) ret = ctdb_transaction_fetch_record(state->h, state->key, state, &data); if (ret != 0) { + fprintf(stderr, "transaction fetch record failed\n"); tevent_req_error(req, ret); return; } @@ -246,6 +247,7 @@ static void transaction_loop_each_second(struct tevent_req *subreq) status = tevent_wakeup_recv(subreq); TALLOC_FREE(subreq); if (! status) { + fprintf(stderr, "tevent wakeup failed\n"); tevent_req_error(req, EIO); return; } @@ -390,7 +392,7 @@ int main(int argc, const char *argv[]) status = transaction_loop_recv(req, &ret); if (! status) { - fprintf(stderr, "transaction loop test failed\n"); + fprintf(stderr, "transaction loop test failed, ret=%d\n", ret); exit(1); }