summaryrefslogtreecommitdiff
path: root/src/libsystemd-network
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/libsystemd-network
parent46d4d67d7914c31e5d9b97e54fa5477824bf5518 (diff)
downloadsystemd-f68a26221c3bb93be2841bfcaaaaae5bf0db64ee.tar.gz
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/libsystemd-network')
-rw-r--r--src/libsystemd-network/test-lldp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsystemd-network/test-lldp.c b/src/libsystemd-network/test-lldp.c
index b6c896f0a1..7406f94ce0 100644
--- a/src/libsystemd-network/test-lldp.c
+++ b/src/libsystemd-network/test-lldp.c
@@ -15,6 +15,7 @@
#include "lldp-network.h"
#include "macro.h"
#include "string-util.h"
+#include "tests.h"
#define TEST_LLDP_PORT "em1"
#define TEST_LLDP_TYPE_SYSTEM_NAME "systemd-lldp"
@@ -365,7 +366,7 @@ static void test_multiple_neighbors_sorted(sd_event *e) {
int main(int argc, char *argv[]) {
_cleanup_(sd_event_unrefp) sd_event *e = NULL;
- log_set_max_level(LOG_DEBUG);
+ test_setup_logging(LOG_DEBUG);
/* LLDP reception tests */
assert_se(sd_event_new(&e) == 0);