diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-03-22 19:09:30 +0100 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-03-22 19:09:30 +0100 |
| commit | af8339ec33f913196f887dbae6ba08996ba3d038 (patch) | |
| tree | 1849c36abce8b3788e0beafb7bd33b5f133362b7 /tests | |
| parent | 9a98fada7b04d7920fef070d7ecc83450a0cb833 (diff) | |
TestServiceMain: use nux logging
(bzr r3249.1.15)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_service_main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_service_main.cpp b/tests/test_service_main.cpp index d5589c3a8..67bcb38c8 100644 --- a/tests/test_service_main.cpp +++ b/tests/test_service_main.cpp @@ -1,3 +1,5 @@ +#include <Nux/Nux.h> +#include <NuxCore/Logger.h> #include "test_service_lens.h" #include "test_service_model.h" #include "test_service_hud.h" @@ -24,6 +26,13 @@ int main(int argc, char** argv) #endif auto loop = g_main_loop_new(NULL, FALSE); + nux::NuxInitialize(0); + // Slightly higher as we're more likely to test things we know will fail + nux::logging::configure_logging("<root>=error"); + + // but you can still change it if you're debugging ;) + nux::logging::configure_logging(::getenv("UNITY_TEST_LOG_SEVERITY")); + glib::DBusServer controller("com.canonical.Unity.Test"); controller.AddObjects(introspection_xml, "/com/canonical/unity/test/controller"); auto const& obj = controller.GetObjects().front(); |
