[folks] tests: Unconditionally enable verbose debugging output from tests
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] tests: Unconditionally enable verbose debugging output from tests
- Date: Sun, 16 Feb 2014 23:54:58 +0000 (UTC)
commit 3513c3779a96a858642731e0b23bd9c106a90e60
Author: Philip Withnall <philip withnall collabora co uk>
Date: Wed Nov 27 11:48:17 2013 +0000
tests: Unconditionally enable verbose debugging output from tests
Since we now require the automake-1.12 parallel test harness, we can
take advantage of the fact that it only outputs tests’ debug spew if
they fail. That means tests can now unconditionally output everything,
which should simplify debugging.
tests/lib/test-case.vala | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/tests/lib/test-case.vala b/tests/lib/test-case.vala
index 02d8c23..2b51245 100644
--- a/tests/lib/test-case.vala
+++ b/tests/lib/test-case.vala
@@ -41,6 +41,13 @@ public abstract class Folks.TestCase : Object
{
Intl.setlocale (LocaleCategory.ALL, "");
+ /* Enable all debug output from libfolks. This is OK, as automake-1.12’s
+ * parallel test harness will only save the debug output from failed
+ * tests. If the user’s already set those variables, though, don’t
+ * overwrite them. */
+ Environment.set_variable ("G_MESSAGES_DEBUG", "all", false);
+ Environment.set_variable ("FOLKS_DEBUG", "all", false);
+
/* Turn off use of gvfs. If using GTestDBus it's unavailable,
* and if not it's pointless: all we need is the local filesystem. */
Environment.set_variable ("GIO_USE_VFS", "local", true);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]