[grilo] tests: Fix registry test with Tracker plugin
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] tests: Fix registry test with Tracker plugin
- Date: Wed, 14 Sep 2016 19:51:45 +0000 (UTC)
commit 74dbc23c132d14d90b97bacdc7184259cee29f2f
Author: Bastien Nocera <hadess hadess net>
Date: Wed Sep 14 13:03:05 2016 +0200
tests: Fix registry test with Tracker plugin
The tracker plugin expects the client and daemon to run with the same
locale to do direct connection, and throws a warning if not.
Set the locale correctly in the test to avoid that problem.
https://bugzilla.gnome.org/show_bug.cgi?id=771339
tests/registry.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/registry.c b/tests/registry.c
index f48bccc..4edabfe 100644
--- a/tests/registry.c
+++ b/tests/registry.c
@@ -23,6 +23,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <locale.h>
#include <glib.h>
#include <grilo.h>
@@ -120,6 +121,8 @@ registry_unregister (RegistryFixture *fixture, gconstpointer data)
int
main (int argc, char **argv)
{
+ setlocale (LC_ALL, "");
+
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugs.gnome.org/%s");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]