Timezone problem with make check?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Timezone problem with make check?

Aaron Laws
I am running ninja check on master and two tests fail, both having to do
with time. One is test-gnc-date.c, and I drilled down. The line that fails
is 721:

g_assert_cmpint (na.tv_sec, ==, ra.tv_sec);

na is 739299600, and ra is 739296000. na - ra = 3600 which is one hour.

I'm hoping someone already knows what's going on. I'll look at the other
test, too.
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: Timezone problem with make check?

John Ralls

> On May 11, 2017, at 1:59 PM, Aaron Laws <[hidden email]> wrote:
>
> I am running ninja check on master and two tests fail, both having to do
> with time. One is test-gnc-date.c, and I drilled down. The line that fails
> is 721:
>
> g_assert_cmpint (na.tv_sec, ==, ra.tv_sec);
>
> na is 739299600, and ra is 739296000. na - ra = 3600 which is one hour.
>
> I'm hoping someone already knows what's going on. I'll look at the other
> test, too.

Are you setting TZ=America/Los_Angeles?

Regards,
John Ralls


_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel