diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 10:23:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 10:23:33 +0000 |
commit | a40ea05d08f1d6dce2fb12fb119a33540bf6256f (patch) | |
tree | 76580546179a403e346084143bd92393474e71be /src/test/test-calendarspec.c | |
parent | Adding upstream version 252.22. (diff) | |
download | systemd-a40ea05d08f1d6dce2fb12fb119a33540bf6256f.tar.xz systemd-a40ea05d08f1d6dce2fb12fb119a33540bf6256f.zip |
Adding upstream version 252.23.upstream/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); |