diff options
author | Jan Janssen <medhefgo@web.de> | 2022-03-14 10:37:27 +0100 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2022-03-16 14:50:12 +0100 |
commit | 68da8adf54d7ab88610c161a1c7dd2819eb96886 (patch) | |
tree | 0a1f175eb14cb1e984c63f309641cf17df416e66 /src/udev/test-udev-netlink.c | |
parent | update TODO (diff) | |
download | systemd-68da8adf54d7ab88610c161a1c7dd2819eb96886.tar.xz systemd-68da8adf54d7ab88610c161a1c7dd2819eb96886.zip |
test: Use TEST macros in more places
Diffstat (limited to 'src/udev/test-udev-netlink.c')
-rw-r--r-- | src/udev/test-udev-netlink.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/udev/test-udev-netlink.c b/src/udev/test-udev-netlink.c index c1213b7ca8..1fddb5efb1 100644 --- a/src/udev/test-udev-netlink.c +++ b/src/udev/test-udev-netlink.c @@ -132,12 +132,10 @@ static void test_link_info_one(sd_netlink *rtnl, int ifindex) { } } -static void test_link_info_get(void) { +TEST(link_info_get) { _cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL; _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL; - log_debug("/* %s */", __func__); - assert_se(sd_netlink_open(&rtnl) >= 0); assert_se(sd_rtnl_message_new_link(rtnl, &req, RTM_GETLINK, 0) >= 0); @@ -156,10 +154,4 @@ static void test_link_info_get(void) { } } -int main(int argc, char *argv[]) { - test_setup_logging(LOG_DEBUG); - - test_link_info_get(); - - return 0; -} +DEFINE_TEST_MAIN(LOG_DEBUG); |