No ticket attached, I just found this when trying to track down another issue.
Thanks Jan
From 5d1a2243885e57464b039baff3d9b89cfdf5492b Mon Sep 17 00:00:00 2001 From: Jan Zeleny <[email protected]> Date: Mon, 4 Jun 2012 13:21:29 -0400 Subject: [PATCH] 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 2e792bbd635f31f9eb7eebc5213f8dd776f67dd5..045f42627e5b928aa910ecdd24c530a05ce673fd 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 64ed197825ba4a1a829c4097682635a0d56e7d8c..8d6bdd3de84823ca5d138244378a96b6be307e33 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 }; -- 1.7.7.6
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ sssd-devel mailing list [email protected] https://fedorahosted.org/mailman/listinfo/sssd-devel
