[SSSD] [PATCH] TESTS: Fix a couple of debug-level setters
Jakub Hrozek
jhrozek at redhat.com
Thu Nov 8 19:10:34 UTC 2012
Please see the attached patch. It wasn't possible to set the debug level
of tests easily, which made debugging them hard.
-------------- next part --------------
>From 380d5e81ed6227d0fbdc4e77efd1d49f083897ba Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Mon, 5 Nov 2012 23:42:11 +0100
Subject: [PATCH] TESTS: Fix a couple of debug-level setters
---
src/tests/files-tests.c | 2 +-
src/tests/refcount-tests.c | 2 +-
src/tests/resolv-tests.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/tests/files-tests.c b/src/tests/files-tests.c
index 56c9ab9bf6054cf8f7251c826658e9cddf155db7..5d7f17e19668746b358d2bd57757dd24636acdcc 100644
--- a/src/tests/files-tests.c
+++ b/src/tests/files-tests.c
@@ -322,7 +322,7 @@ int main(int argc, const char *argv[])
}
poptFreeContext(pc);
- DEBUG_INIT(debug_level);
+ DEBUG_INIT(debug);
tests_set_cwd();
diff --git a/src/tests/refcount-tests.c b/src/tests/refcount-tests.c
index 9a7e5b94cf6198ae698d90c5bb033e1822f7bb0c..d93f1561f3ba753f9cf730fa8bcef003a6f106b2 100644
--- a/src/tests/refcount-tests.c
+++ b/src/tests/refcount-tests.c
@@ -222,7 +222,7 @@ int main(int argc, const char *argv[])
}
poptFreeContext(pc);
- DEBUG_INIT(debug_level);
+ DEBUG_INIT(debug);
tests_set_cwd();
diff --git a/src/tests/resolv-tests.c b/src/tests/resolv-tests.c
index c61d6f8ceadf2819a2fd5814002bffe9c9f32861..61308e3827ceefff662649335a6e4da032886ce0 100644
--- a/src/tests/resolv-tests.c
+++ b/src/tests/resolv-tests.c
@@ -856,7 +856,7 @@ int main(int argc, const char *argv[])
}
poptFreeContext(pc);
- DEBUG_INIT(debug_level);
+ DEBUG_INIT(debug);
if (!use_net_test) {
printf("Network tests disabled. Rerun with the \"-n\" "
--
1.7.12.1
More information about the sssd-devel
mailing list