tracker r1796 - in branches/indexer-split: . tests/libtracker-common



Author: ifrade
Date: Fri Jun 27 12:16:03 2008
New Revision: 1796
URL: http://svn.gnome.org/viewvc/tracker?rev=1796&view=rev

Log:
Test date to string now doesnt depend on the timezone

Modified:
   branches/indexer-split/ChangeLog
   branches/indexer-split/tests/libtracker-common/tracker-type-utils-test.c

Modified: branches/indexer-split/tests/libtracker-common/tracker-type-utils-test.c
==============================================================================
--- branches/indexer-split/tests/libtracker-common/tracker-type-utils-test.c	(original)
+++ branches/indexer-split/tests/libtracker-common/tracker-type-utils-test.c	Fri Jun 27 12:16:03 2008
@@ -2,6 +2,7 @@
 #include <glib/gtestutils.h>
 
 #include <time.h>
+#include <string.h>
 
 #include <libtracker-common/tracker-type-utils.h>
 #include <tracker-test-helpers.h>
@@ -104,12 +105,8 @@
         input = mktime (original);
 
         result = tracker_date_to_string (input);
-        // Maybe this test fails in a different time zone!
-
-        // By pvanhoof: It does! In Belgium ;-)
-        // Please fix 
-
-        g_assert (tracker_test_helpers_cmpstr_equal (result, "2008-06-16T23:53:10+0300"));
+        g_print ("%s", result);
+        g_assert (result != NULL && strncmp (result, "2008-06-16T23:53:10", 19) == 0);
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]