diff options
author | Mike Gilbert <floppym@gentoo.org> | 2018-05-12 21:20:13 +0200 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2018-05-12 21:20:13 +0200 |
commit | 089fb8653f70b1915ca9ab80ca0ebba1f0cd8185 (patch) | |
tree | 280c8acd30eabe0efe4a6b038e3c10860780a846 /src/test/test-time-util.c | |
parent | basic: timezone_is_valid: check for magic bytes "TZif" (diff) | |
download | systemd-089fb8653f70b1915ca9ab80ca0ebba1f0cd8185.tar.xz systemd-089fb8653f70b1915ca9ab80ca0ebba1f0cd8185.zip |
basic: add log_level argument to timezone_is_valid
Diffstat (limited to 'src/test/test-time-util.c')
-rw-r--r-- | src/test/test-time-util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test-time-util.c b/src/test/test-time-util.c index 5393deff70..5b8e7c7b35 100644 --- a/src/test/test-time-util.c +++ b/src/test/test-time-util.c @@ -168,9 +168,9 @@ static void test_format_timespan(usec_t accuracy) { } static void test_timezone_is_valid(void) { - assert_se(timezone_is_valid("Europe/Berlin")); - assert_se(timezone_is_valid("Australia/Sydney")); - assert_se(!timezone_is_valid("Europe/Do not exist")); + assert_se(timezone_is_valid("Europe/Berlin", LOG_ERR)); + assert_se(timezone_is_valid("Australia/Sydney", LOG_ERR)); + assert_se(!timezone_is_valid("Europe/Do not exist", LOG_ERR)); } static void test_get_timezones(void) { @@ -182,7 +182,7 @@ static void test_get_timezones(void) { assert_se(r == 0); STRV_FOREACH(zone, zones) - assert_se(timezone_is_valid(*zone)); + assert_se(timezone_is_valid(*zone, LOG_ERR)); } static void test_usec_add(void) { |