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)
committerArnaud Rebillout <arnaudr@debian.org>
Mon, 13 Apr 2026 07:18:40 +0000 (14:18 +0700)
commit18886843e8f21f93d65f6ab8ede0ecf4b8b5dcb1
tree841abc549de966039c58a6a988a67d0e1c7b84a1
parent94d70d13df920b008ab7f2f7b2b5d12511d3e007
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