summaryrefslogtreecommitdiff
path: root/src/locale
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-01-20 18:21:09 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-03-04 14:15:38 +0100
commitf68a26221c3bb93be2841bfcaaaaae5bf0db64ee (patch)
treea915bed9be4b017ac01b9a7d45ce7d76277ade73 /src/locale
parent46d4d67d7914c31e5d9b97e54fa5477824bf5518 (diff)
downloadsystemd-f68a26221c3bb93be2841bfcaaaaae5bf0db64ee.tar.gz
systemd-f68a26221c3bb93be2841bfcaaaaae5bf0db64ee.tar.bz2
systemd-f68a26221c3bb93be2841bfcaaaaae5bf0db64ee.zip
tests: use the test helpers in more places
This is mostly cosmetic. It makes those test binaries support SYSTEMD_LOG_* environment variables.
Diffstat (limited to 'src/locale')
-rw-r--r--src/locale/test-keymap-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/locale/test-keymap-util.c b/src/locale/test-keymap-util.c
index 2f82891d60..f96f5b07ec 100644
--- a/src/locale/test-keymap-util.c
+++ b/src/locale/test-keymap-util.c
@@ -4,6 +4,7 @@
#include "keymap-util.h"
#include "log.h"
#include "string-util.h"
+#include "tests.h"
static void test_find_language_fallback(void) {
_cleanup_free_ char *ans = NULL, *ans2 = NULL;
@@ -189,8 +190,7 @@ static void test_x11_convert_to_vconsole(void) {
}
int main(int argc, char **argv) {
- log_set_max_level(LOG_DEBUG);
- log_parse_environment();
+ test_setup_logging(LOG_DEBUG);
test_find_language_fallback();
test_find_converted_keymap();