diff options
author | Bastien Nocera <hadess@hadess.net> | 2016-09-14 13:03:05 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2016-09-14 13:04:17 +0200 |
commit | 74dbc23c132d14d90b97bacdc7184259cee29f2f (patch) | |
tree | c0af50fc69c22bb17e05f655eac0f8669adc116d /tests | |
parent | 3a6268f60712aafd2f007426e5d646c8ce237657 (diff) | |
download | grilo-74dbc23c132d14d90b97bacdc7184259cee29f2f.tar.gz |
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
Diffstat (limited to 'tests')
-rw-r--r-- | 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"); |