summaryrefslogtreecommitdiffstats
path: root/src/tests/crypto-tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/crypto-tests.c')
-rw-r--r--src/tests/crypto-tests.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tests/crypto-tests.c b/src/tests/crypto-tests.c
index 0f6f2fe0c..ba584668d 100644
--- a/src/tests/crypto-tests.c
+++ b/src/tests/crypto-tests.c
@@ -122,6 +122,8 @@ 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) {
@@ -135,7 +137,8 @@ int main(int argc, const char *argv[])
}
poptFreeContext(pc);
- debug_level = debug_convert_old_level(debug);
+ CONVERT_AND_SET_DEBUG_LEVEL(debug_level);
+
tests_set_cwd();
Suite *s = crypto_suite();