On 27/01/25 20:51, Aki Tuomi via dovecot wrote:

On 27/01/2025 08:43 EET Peter via dovecot <dovecot@dovecot.org> wrote:

On 25/01/25 16:27, Peter via dovecot wrote:
I'm getting the following failed test:

test-var-expand.c:464: Assert failed: labs(t0 - t1) < 10
          3600 < 10 is not true
var_expand(providers) ................................................ :
FAILED

This test appears to be a timestamp comparison as per this comment:

/* Ensure the time is within 10 seconds */

being exactly one hour off makes me suspect a time-zone issue on the
build machine.  This machine is in NZDT which is currently in daylight
savings time which makes me suspect that this is an issue that is
specific to dovecot being built in a timezone in the southern hemisphere.

Shouldn't the comparison be done on UTC time instead of localtime to
avoid these issues?

I am not really able to reproduce this issue, can you try the attached patch to 
see if it helps?

Yes, that patch fixes it.


Thanks,


Peter

_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to