summaryrefslogtreecommitdiff
path: root/tests
diff options
Diffstat (limited to 'tests')
-rw-r--r--tests/test_service_main.cpp9
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();