summaryrefslogtreecommitdiff
path: root/tests/libtracker-common
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2015-08-19 23:01:48 +0200
committerCarlos Garnacho <carlosg@gnome.org>2015-08-19 23:01:48 +0200
commit8eda92c6e3722187e7050e2ac230ae2eddad8948 (patch)
treeb3a92ffeb7cd0cf52c0c66ab9ca477a1daffde85 /tests/libtracker-common
parent614589d2afc3b2e4ffc0f4a5c49ec53c8b6c10f9 (diff)
downloadtracker-8eda92c6e3722187e7050e2ac230ae2eddad8948.tar.gz
tests: Fix make check
We now return a GError in the only tested condition, so look for this at least
Diffstat (limited to 'tests/libtracker-common')
-rw-r--r--tests/libtracker-common/tracker-date-time-test.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/libtracker-common/tracker-date-time-test.c b/tests/libtracker-common/tracker-date-time-test.c
index 81ae1d70c..40e141f70 100644
--- a/tests/libtracker-common/tracker-date-time-test.c
+++ b/tests/libtracker-common/tracker-date-time-test.c
@@ -35,7 +35,14 @@
static void
test_string_to_date_failures_subprocess ()
{
- tracker_string_to_date (NULL, NULL, NULL);
+ GError *error = NULL;
+
+ tracker_string_to_date (NULL, NULL, &error);
+
+ if (error) {
+ g_warning ("%s", error->message);
+ g_error_free (error);
+ }
}
static void
@@ -43,7 +50,7 @@ test_string_to_date_failures ()
{
g_test_trap_subprocess ("/libtracker-common/date-time/string_to_date_failures/subprocess", 0, 0);
g_test_trap_assert_failed ();
- g_test_trap_assert_stderr ("*'date_string' failed*");
+ g_test_trap_assert_stderr ("*Empty date string*");
}
static void