diff options
Diffstat (limited to 'src/tests/resolv-tests.c')
-rw-r--r-- | src/tests/resolv-tests.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tests/resolv-tests.c b/src/tests/resolv-tests.c index 3768fc97..b9a33ca7 100644 --- a/src/tests/resolv-tests.c +++ b/src/tests/resolv-tests.c @@ -770,6 +770,9 @@ int main(int argc, const char *argv[]) POPT_TABLEEND }; + /* Set debug level to invalid value so we can deside if -d 0 was used. */ + debug_level = SSSDBG_INVALID; + pc = poptGetContext(argv[0], argc, argv, long_options, 0); while((opt = poptGetNextOpt(pc)) != -1) { switch(opt) { @@ -790,7 +793,8 @@ int main(int argc, const char *argv[]) } } poptFreeContext(pc); - debug_level = debug_convert_old_level(debug); + + CONVERT_AND_SET_DEBUG_LEVEL(debug_level); if (!use_net_test) { printf("Network tests disabled. Rerun with the \"-n\" " |