From: Alan T. DeKok Date: Wed, 21 Dec 2016 18:36:00 +0000 (-0500) Subject: fail if we can't start time X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd74f94ff059212067e8117bd46730ebb451ba2f;p=thirdparty%2Ffreeradius-server.git fail if we can't start time --- diff --git a/src/tests/util/worker_test.c b/src/tests/util/worker_test.c index 0ff13f220cd..5e52529b9e3 100644 --- a/src/tests/util/worker_test.c +++ b/src/tests/util/worker_test.c @@ -449,7 +449,10 @@ int main(int argc, char *argv[]) int c; TALLOC_CTX *autofree = talloc_init("main"); - fr_time_start(); + if (fr_time_start() < 0) { + fprintf(stderr, "Failed to start time: %s\n", strerror(errno)); + exit(1); + } while ((c = getopt(argc, argv, "c:hm:o:qtw:x")) != EOF) switch (c) { case 'x':