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)
committerLuca Boccassi <bluca@debian.org>
Mon, 27 May 2024 13:02:03 +0000 (14:02 +0100)
commitbe98313e255d34d4e7985fca433c28af34c71922
tree7bcbcc393fd157a18fbc5432db0be6ba01e17834
parentd28c68664c058597bdf6f647a7fb325895d57d59
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