test: unset TZ before timezone-sensitive unit tests are run
authorLuca Boccassi <bluca@debian.org>
Fri, 26 Jan 2024 00:22:38 +0000 (00:22 +0000)
committerCarlos Henrique Lima Melara <charlesmelara@riseup.net>
Thu, 26 Jun 2025 00:44:53 +0000 (21:44 -0300)
commit48af5f60daa55771dc4b3b6c539bae05bfb7f513
tree6735401989b9bcc17412a2776145861bea440889
parent3ac2838f821bb4a617d400f7da931a4d90fcd8f6
test: unset TZ before timezone-sensitive unit tests are run

Some tests have hard-coded results that need to match, and change if
the caller has a timezone set via the TZ= environment variable, as it
is the case during reproducible build tests. Unset it.

(cherry picked from commit 1e902c3463024bb328bf0d01a5d58a69e1ccf739)
(cherry picked from commit 85c88db9c64242f65c814f1ede467ef66066e663)
(cherry picked from commit d7fa5b8acbb5013992ae93c120845f0dc3fcfa93)
(cherry picked from commit 4d6d1a9f0557771e09a210ea9e83a7ed20df78de)
(cherry picked from commit d91a1c0f2c661731bc8a2149807ed9fd613b7c80)

Gbp-Pq: Name test-unset-TZ-before-timezone-sensitive-unit-tests-are-ru.patch
src/test/test-calendarspec.c
src/test/test-date.c
src/test/test-time-util.c