god... it was using localtime, so should we when we test.

SVN revision: 82950
This commit is contained in:
Gustavo Sverzut Barbieri 2013-01-17 20:36:52 +00:00
parent 69650dd84c
commit b830048a64
1 changed files with 4 additions and 1 deletions

View File

@ -1393,6 +1393,7 @@ START_TEST(eina_value_test_timeval)
struct timeval itv, otv;
char c;
char *str;
char buf[64];
eina_init();
@ -1424,7 +1425,9 @@ START_TEST(eina_value_test_timeval)
fail_unless(eina_value_set(value, itv));
str = eina_value_to_string(value);
fail_unless(str != NULL);
ck_assert_str_eq(str, "1970-01-01 00:25:45");
strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", localtime(&(itv.tv_sec)));
ck_assert_str_eq(str, buf);
free(str);
fail_unless(eina_value_setup(&other, EINA_VALUE_TYPE_TIMEVAL));