# HG changeset patch # User Timo Sirainen # Date 1488118258 -7200 # Node ID dc989aeb72995b0bfbce21f332f700bcfc209de4 # Parent 2ce0a606fd23136ff8c6ecd44f0929732268d02b lib-index: Fix test-mail-index-transaction-update It was broken with TZ=Australia/ACT. Fixing it seems too troublesome, so just use TZ=UTC during the test. diff -r 2ce0a606fd23 -r dc989aeb7299 src/lib-index/test-mail-index-transaction-update.c --- a/src/lib-index/test-mail-index-transaction-update.c Sun Feb 26 16:09:13 2017 +0200 +++ b/src/lib-index/test-mail-index-transaction-update.c Sun Feb 26 16:10:58 2017 +0200 @@ -627,6 +627,10 @@ test_begin("mail index update day first uid"); + /* daylight savings times were confusing these tests, so we'll now + just assume that TZ=UTC */ + test_assert(timezone == 0); + hdr.messages_count = 10; t = mail_index_transaction_new(); t->view = t_new(struct mail_index_view, 1); @@ -671,6 +675,8 @@ test_mail_index_update_day_first_uid, NULL }; + /* daylight saving time confuses things */ + putenv("TZ=UTC"); tzset(); return test_run(test_functions); }