summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-01-17 05:59:33 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-01-25 12:32:18 +0100
commit9fdee66f2d9c52596823a1169261adcf5e26dc73 (patch)
treef58e4de4c6ac36ca9db3a66a37c81d94a0498aef /src/test
parentudev: stop to use LOG_REALM_UDEV (diff)
downloadsystemd-9fdee66f2d9c52596823a1169261adcf5e26dc73.tar.xz
systemd-9fdee66f2d9c52596823a1169261adcf5e26dc73.zip
log: drop unused LogRealm
Already no binary is built with LOG_REALM= argument. Hence, we can safely drop LogRealm now.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-log.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/test/test-log.c b/src/test/test-log.c
index a2a53730ef..861309eb3a 100644
--- a/src/test/test-log.c
+++ b/src/test/test-log.c
@@ -9,15 +9,6 @@
#include "string-util.h"
#include "util.h"
-assert_cc(LOG_REALM_REMOVE_LEVEL(LOG_REALM_PLUS_LEVEL(LOG_REALM_SYSTEMD, LOG_FTP | LOG_DEBUG))
- == LOG_REALM_SYSTEMD);
-assert_cc(LOG_REALM_REMOVE_LEVEL(LOG_REALM_PLUS_LEVEL(LOG_REALM_UDEV, LOG_LOCAL7 | LOG_DEBUG))
- == LOG_REALM_UDEV);
-assert_cc((LOG_REALM_PLUS_LEVEL(LOG_REALM_SYSTEMD, LOG_LOCAL3 | LOG_DEBUG) & LOG_FACMASK)
- == LOG_LOCAL3);
-assert_cc((LOG_REALM_PLUS_LEVEL(LOG_REALM_UDEV, LOG_USER | LOG_INFO) & LOG_PRIMASK)
- == LOG_INFO);
-
assert_cc(IS_SYNTHETIC_ERRNO(SYNTHETIC_ERRNO(EINVAL)));
assert_cc(!IS_SYNTHETIC_ERRNO(EINVAL));
assert_cc(IS_SYNTHETIC_ERRNO(SYNTHETIC_ERRNO(0)));