From 07823e1fe75c588b75f4e42c80b0a7bc974238f7 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 15 Mar 2010 16:34:43 +0100 Subject: [PATCH] tests: eliminate a floating point exception by requiring -n option to ctdb_bench Michael --- tests/src/ctdb_bench.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/src/ctdb_bench.c b/tests/src/ctdb_bench.c index 52e5b509..453761d5 100644 --- a/tests/src/ctdb_bench.c +++ b/tests/src/ctdb_bench.c @@ -214,6 +214,11 @@ int main(int argc, const char *argv[]) while (extra_argv[extra_argc]) extra_argc++; } + if (num_nodes == 0) { + printf("You must specify the number of nodes\n"); + exit(1); + } + ev = event_context_init(NULL); /* initialise ctdb */ -- 2.34.1