diff options
author | Gustavo Sverzut Barbieri <barbieri@gmail.com> | 2013-01-17 20:36:52 +0000 |
---|---|---|
committer | Gustavo Sverzut Barbieri <barbieri@gmail.com> | 2013-01-17 20:36:52 +0000 |
commit | b830048a649a66d1132b940eac7367f5d2af613a (patch) | |
tree | 6618016028fad89f998995fcb082c59b969cacad /src/tests/eina | |
parent | 69650dd84c131d8b810c6e32b1e874e1663bf5f9 (diff) |
god... it was using localtime, so should we when we test.
SVN revision: 82950
Diffstat (limited to 'src/tests/eina')
-rw-r--r-- | src/tests/eina/eina_test_value.c | 5 |
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 b8a120ee6..cba7f88a3 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) 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)); |