From 66c238caf7a35701ea7b8bc8a3c15424c9867e9f Mon Sep 17 00:00:00 2001 From: Jan Zeleny Date: Mon, 4 Jun 2012 13:21:29 -0400 Subject: Fixed setting of debug level in test suite --- src/tests/crypto-tests.c | 3 +-- src/tests/fail_over-tests.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/tests/crypto-tests.c b/src/tests/crypto-tests.c index 2e792bbd6..045f42627 100644 --- a/src/tests/crypto-tests.c +++ b/src/tests/crypto-tests.c @@ -150,11 +150,10 @@ int main(int argc, const char *argv[]) int opt; poptContext pc; int number_failed; - int debug = 0; struct poptOption long_options[] = { POPT_AUTOHELP - { "debug-level", 'd', POPT_ARG_INT, &debug, 0, "Set debug level", NULL }, + { "debug-level", 'd', POPT_ARG_INT, &debug_level, 0, "Set debug level", NULL }, POPT_TABLEEND }; diff --git a/src/tests/fail_over-tests.c b/src/tests/fail_over-tests.c index 64ed19782..8d6bdd3de 100644 --- a/src/tests/fail_over-tests.c +++ b/src/tests/fail_over-tests.c @@ -283,11 +283,10 @@ main(int argc, const char *argv[]) int failure_count; Suite *suite; SRunner *sr; - int debug = 0; struct poptOption long_options[] = { POPT_AUTOHELP - { "debug-level", 'd', POPT_ARG_INT, &debug, 0, "Set debug level", NULL }, + { "debug-level", 'd', POPT_ARG_INT, &debug_level, 0, "Set debug level", NULL }, { "use-net-test", 'n', POPT_ARG_NONE, 0, 'n', "Run tests that need an active internet connection", NULL }, POPT_TABLEEND }; -- cgit