From dfb3cd693afb29f383433d7e26d3551a9e2eb705 Mon Sep 17 00:00:00 2001 From: "Fabio M. Di Nitto" Date: Tue, 7 Feb 2012 10:05:07 +0100 Subject: [PATCH] testquorum: check for quorum_dispatch return code Signed-off-by: Fabio M. Di Nitto Reviewed-by: Steven Dake --- test/testquorum.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/testquorum.c b/test/testquorum.c index 0c4ec6f0..52ae562e 100644 --- a/test/testquorum.c +++ b/test/testquorum.c @@ -55,7 +55,10 @@ int main(int argc, char *argv[]) printf("-------------------\n"); while (1) - quorum_dispatch(g_handle, CS_DISPATCH_ALL); + if (quorum_dispatch(g_handle, CS_DISPATCH_ALL) != CS_OK) { + fprintf(stderr, "Error from quorum_dispatch\n"); + return -1; + } return 0; }