diff options
author | Jan Zeleny <jzeleny@redhat.com> | 2012-06-04 13:21:29 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-06-04 14:16:28 -0400 |
commit | 66c238caf7a35701ea7b8bc8a3c15424c9867e9f (patch) | |
tree | b086d6f19926f7dc86bc911c6c9776052bc412ab | |
parent | b9698ee9e8365f16aebd780087d1ef4830ea9f39 (diff) | |
download | sssd-66c238caf7a35701ea7b8bc8a3c15424c9867e9f.tar.gz sssd-66c238caf7a35701ea7b8bc8a3c15424c9867e9f.tar.bz2 sssd-66c238caf7a35701ea7b8bc8a3c15424c9867e9f.zip |
Fixed setting of debug level in test suite
-rw-r--r-- | src/tests/crypto-tests.c | 3 | ||||
-rw-r--r-- | 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 2e792bbd..045f4262 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 64ed1978..8d6bdd3d 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 }; |