[libpeas] Disable GLib diagnostics in tests
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Disable GLib diagnostics in tests
- Date: Fri, 22 Aug 2014 19:35:41 +0000 (UTC)
commit 9f915d312d4f3e9c9caff687de13e461816d5539
Author: Garrett Regier <garrettregier gmail com>
Date: Sat Jun 28 14:19:53 2014 -0700
Disable GLib diagnostics in tests
tests/testing-util/testing-util.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/testing-util/testing-util.c b/tests/testing-util/testing-util.c
index d31a8cb..e67b502 100644
--- a/tests/testing-util/testing-util.c
+++ b/tests/testing-util/testing-util.c
@@ -133,6 +133,9 @@ testing_util_init (void)
g_log_set_default_handler (log_handler, NULL);
+ /* Allow test runners to set this to 1 */
+ g_setenv ("G_ENABLE_DIAGNOSTIC", "0", FALSE);
+
g_setenv ("GSETTINGS_BACKEND", "memory", TRUE);
g_irepository_prepend_search_path (BUILDDIR "/libpeas");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]