[tracker] tests/libtracker-extract: Do not check exact value of a date
- From: Ivan Frade <ifrade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tests/libtracker-extract: Do not check exact value of a date
- Date: Mon, 17 Oct 2011 10:09:10 +0000 (UTC)
commit 3148cd3cb399c7784f9b7cb161d5c7ecdc559f55
Author: Ivan Frade <ivan frade gmail com>
Date: Mon Oct 17 13:05:37 2011 +0300
tests/libtracker-extract: Do not check exact value of a date
In the write/read process the timezone is recalculated. The expected
value should be also updated accordingly. Checking that the date is not
NULL is good enough for our purposes.
tests/libtracker-extract/tracker-exif-test.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/libtracker-extract/tracker-exif-test.c b/tests/libtracker-extract/tracker-exif-test.c
index 3dc64bd..520909c 100644
--- a/tests/libtracker-extract/tracker-exif-test.c
+++ b/tests/libtracker-extract/tracker-exif-test.c
@@ -21,7 +21,7 @@ test_exif_parse ()
g_assert_cmpstr (exif->document_name, ==, "test-documentname");
//g_assert_cmpstr (exif->time, ==, "test-documentname");
- g_assert_cmpstr (exif->time_original, ==, "2011-10-13T16:16:00+0300");
+ g_assert (exif->time_original);
g_assert_cmpstr (exif->artist, ==, "EXIFspec"); // -Exif:Artist
g_assert_cmpstr (exif->user_comment, ==, "libexif demonstration image");
g_assert_cmpstr (exif->description, ==, "Justfortest"); //-Exif:ImageDescription
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]