diff options
Diffstat (limited to 'src/tests/sysdb-tests.c')
-rw-r--r-- | src/tests/sysdb-tests.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c index 87b06ee40..c27658288 100644 --- a/src/tests/sysdb-tests.c +++ b/src/tests/sysdb-tests.c @@ -3108,6 +3108,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) { @@ -3120,7 +3123,7 @@ int main(int argc, const char *argv[]) { } poptFreeContext(pc); - debug_level = debug_convert_old_level(debug_level); + CONVERT_AND_SET_DEBUG_LEVEL(debug_level); tests_set_cwd(); |