summaryrefslogtreecommitdiff
path: root/src/tests/eina/eina_test_value.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-17 20:36:52 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-17 20:36:52 +0000
commitb830048a649a66d1132b940eac7367f5d2af613a (patch)
tree6618016028fad89f998995fcb082c59b969cacad /src/tests/eina/eina_test_value.c
parent69650dd84c131d8b810c6e32b1e874e1663bf5f9 (diff)
god... it was using localtime, so should we when we test.
SVN revision: 82950
Diffstat (limited to 'src/tests/eina/eina_test_value.c')
-rw-r--r--src/tests/eina/eina_test_value.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tests/eina/eina_test_value.c b/src/tests/eina/eina_test_value.c
index b8a120ee61..cba7f88a3e 100644
--- a/src/tests/eina/eina_test_value.c
+++ b/src/tests/eina/eina_test_value.c
@@ -1393,6 +1393,7 @@ START_TEST(eina_value_test_timeval)
1393 struct timeval itv, otv; 1393 struct timeval itv, otv;
1394 char c; 1394 char c;
1395 char *str; 1395 char *str;
1396 char buf[64];
1396 1397
1397 eina_init(); 1398 eina_init();
1398 1399
@@ -1424,7 +1425,9 @@ START_TEST(eina_value_test_timeval)
1424 fail_unless(eina_value_set(value, itv)); 1425 fail_unless(eina_value_set(value, itv));
1425 str = eina_value_to_string(value); 1426 str = eina_value_to_string(value);
1426 fail_unless(str != NULL); 1427 fail_unless(str != NULL);
1427 ck_assert_str_eq(str, "1970-01-01 00:25:45"); 1428
1429 strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", localtime(&(itv.tv_sec)));
1430 ck_assert_str_eq(str, buf);
1428 free(str); 1431 free(str);
1429 1432
1430 fail_unless(eina_value_setup(&other, EINA_VALUE_TYPE_TIMEVAL)); 1433 fail_unless(eina_value_setup(&other, EINA_VALUE_TYPE_TIMEVAL));