summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2013-11-27 11:48:17 +0000
committerPhilip Withnall <philip@tecnocode.co.uk>2014-02-16 23:52:32 +0000
commit3513c3779a96a858642731e0b23bd9c106a90e60 (patch)
treed2906c37316804ae7b8b8773384e7d1c36bb7de0
parent28821702af19b6ff65aeb18f5514d34d10b00f29 (diff)
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.
-rw-r--r--tests/lib/test-case.vala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lib/test-case.vala b/tests/lib/test-case.vala
index 02d8c23f..2b512456 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);