diff options
author | Tom Gundersen <teg@jklm.no> | 2014-03-05 11:47:38 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-03-05 11:52:32 +0100 |
commit | 3b35ade3fd015482a450fe20edb7c7b7ccbbb803 (patch) | |
tree | c09982fc0d31cb89a828972da313fc5609c2c5a2 /src/libsystemd/sd-rtnl/test-rtnl.c | |
parent | sd-dhcp-client: log the MAC address we are using (diff) | |
download | systemd-3b35ade3fd015482a450fe20edb7c7b7ccbbb803.tar.xz systemd-3b35ade3fd015482a450fe20edb7c7b7ccbbb803.zip |
sd-rtnl: do not blindly enter containers in message_read()
We need a separate container_enter() function, which will be part of a largerg
API change. For now, just fix message_read().
Diffstat (limited to '')
-rw-r--r-- | src/libsystemd/sd-rtnl/test-rtnl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd/sd-rtnl/test-rtnl.c b/src/libsystemd/sd-rtnl/test-rtnl.c index dd74e76ed4..1016bb6d4e 100644 --- a/src/libsystemd/sd-rtnl/test-rtnl.c +++ b/src/libsystemd/sd-rtnl/test-rtnl.c @@ -302,6 +302,7 @@ static void test_container(void) { assert_se(sd_rtnl_message_read(m, &type, &data) >= 0); assert_se(type == IFLA_LINKINFO); assert_se(data == NULL); +/* assert_se(sd_rtnl_message_read(m, &type, &data) >= 0); assert_se(type == IFLA_INFO_KIND); assert_se(streq("kind", (char *)data)); @@ -318,6 +319,7 @@ static void test_container(void) { assert_se(streq("kind", (char *)data)); assert_se(sd_rtnl_message_read(m, &type, &data) == 0); assert_se(sd_rtnl_message_exit_container(m) >= 0); +*/ assert_se(sd_rtnl_message_exit_container(m) == -EINVAL); } |