diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 10:23:36 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 10:23:36 +0000 |
commit | 3124284ced2903518f6d277b8c8d63ed79da47b7 (patch) | |
tree | a7e9aca4373a077d060a80c5ff9adbda67822f3f /src/test/test-calendarspec.c | |
parent | Releasing progress-linux version 252.22-1~deb12u1~progress6.99u1. (diff) | |
download | systemd-3124284ced2903518f6d277b8c8d63ed79da47b7.tar.xz systemd-3124284ced2903518f6d277b8c8d63ed79da47b7.zip |
Merging upstream version 252.23.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/test/test-calendarspec.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/test/test-calendarspec.c b/src/test/test-calendarspec.c index 564983b..4699991 100644 --- a/src/test/test-calendarspec.c +++ b/src/test/test-calendarspec.c @@ -260,4 +260,11 @@ TEST(calendar_spec_from_string) { assert_se(calendar_spec_from_string("*:4,30:*\n", &c) == -EINVAL); } -DEFINE_TEST_MAIN(LOG_INFO); +static int intro(void) { + /* Tests have hard-coded results that do not expect a specific timezone to be set by the caller */ + assert_se(unsetenv("TZ") >= 0); + + return EXIT_SUCCESS; +} + +DEFINE_TEST_MAIN_WITH_INTRO(LOG_INFO, intro); |