[tracker] tests: Fix make check
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tests: Fix make check
- Date: Wed, 19 Aug 2015 22:25:20 +0000 (UTC)
commit 8eda92c6e3722187e7050e2ac230ae2eddad8948
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Aug 19 23:01:48 2015 +0200
tests: Fix make check
We now return a GError in the only tested condition, so look for this at least
tests/libtracker-common/tracker-date-time-test.c | 11 +++++++++--
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 81ae1d7..40e141f 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]