[geary/wip/intermittitent-ci-test-failures-redux: 7/8] Enable loging for engine tests



commit 343ada4e3477d21e74387ac3bd3ad2e23d65d81b
Author: Michael Gratton <mike vee net>
Date:   Thu Feb 14 11:45:01 2019 +1100

    Enable loging for engine tests

 test/test-engine.vala | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/test/test-engine.vala b/test/test-engine.vala
index 8186fa1d..129ecf3a 100644
--- a/test/test-engine.vala
+++ b/test/test-engine.vala
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016-2018 Michael Gratton <mike vee net>
+ * Copyright 2016-2019 Michael Gratton <mike vee net>
  *
  * This software is licensed under the GNU Lesser General Public License
  * (version 2.1 or later). See the COPYING file in this distribution.
@@ -12,9 +12,13 @@ int main(string[] args) {
 
     Test.init(ref args);
 
+    Geary.Logging.init();
+    Geary.Logging.init();
+    Geary.Logging.log_to(stderr);
+    GLib.Log.set_default_handler(Geary.Logging.default_handler);
+
     Geary.RFC822.init();
     Geary.HTML.init();
-    Geary.Logging.init();
 
     /*
      * Hook up all tests into appropriate suites


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]