[tracker/journal-err-reporting: 3/3] tests, libtracker-common: Fix tests when meegotouch is enabled
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/journal-err-reporting: 3/3] tests, libtracker-common: Fix tests when meegotouch is enabled
- Date: Thu, 21 Apr 2011 14:24:37 +0000 (UTC)
commit 2f8f4ac5883862a098db9e0cbb268940c491e2f1
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Apr 21 16:22:35 2011 +0200
tests, libtracker-common: Fix tests when meegotouch is enabled
tests/libtracker-common/tracker-file-utils-test.c | 4 ++++
tests/libtracker-common/tracker-utils-test.c | 11 ++++++++++-
2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/tests/libtracker-common/tracker-file-utils-test.c b/tests/libtracker-common/tracker-file-utils-test.c
index 157e410..e8268f0 100644
--- a/tests/libtracker-common/tracker-file-utils-test.c
+++ b/tests/libtracker-common/tracker-file-utils-test.c
@@ -23,6 +23,7 @@
#include <gio/gio.h>
#include <libtracker-common/tracker-file-utils.h>
+#include <libtracker-common/tracker-locale.h>
#include <tracker-test-helpers.h>
@@ -188,6 +189,7 @@ main (int argc, char **argv)
g_type_init ();
g_test_init (&argc, &argv, NULL);
+ tracker_locale_init ();
g_test_add_func ("/tracker/libtracker-common/tracker-file-utils/path_evaluate_name",
test_path_evaluate_name);
@@ -200,5 +202,7 @@ main (int argc, char **argv)
result = g_test_run ();
+ tracker_locale_shutdown ();
+
return result;
}
diff --git a/tests/libtracker-common/tracker-utils-test.c b/tests/libtracker-common/tracker-utils-test.c
index f1d5ae0..778209a 100644
--- a/tests/libtracker-common/tracker-utils-test.c
+++ b/tests/libtracker-common/tracker-utils-test.c
@@ -23,6 +23,7 @@
#include <glib-object.h>
#include <libtracker-common/tracker-utils.h>
#include <libtracker-common/tracker-encoding.h>
+#include <libtracker-common/tracker-locale.h>
static void
test_encoding_guessing ()
@@ -106,9 +107,13 @@ test_seconds_estimate_to_string ()
int
main (int argc, char **argv)
{
+ gboolean ret;
+
g_type_init ();
g_test_init (&argc, &argv, NULL);
+ tracker_locale_init ();
+
g_test_add_func ("/libtracker-common/tracker-utils/seconds_to_string",
test_seconds_to_string);
@@ -118,5 +123,9 @@ main (int argc, char **argv)
g_test_add_func ("/libtracker-common/tracker-encoding/encoding_guessing",
test_encoding_guessing);
- return g_test_run ();
+ ret = g_test_run ();
+
+ tracker_locale_shutdown ();
+
+ return ret;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]