summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/test-dhcp6-client.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-09-24 00:55:49 +0200
committerTom Gundersen <teg@jklm.no>2015-09-24 00:55:49 +0200
commit5fecc33e32161008a14ede1061982805dbe57cec (patch)
tree9535caf785773e12d235eb4abb0d73dba02ac717 /src/libsystemd-network/test-dhcp6-client.c
parent167e451c37bee5815559f0974cb5383c386600e3 (diff)
parent18d29550b5fbc4b0de334b8212d05decdd131f1b (diff)
Merge pull request #1356 from pfl/dhcp6_suspend
DHCPv6 suspend fixes
Diffstat (limited to 'src/libsystemd-network/test-dhcp6-client.c')
-rw-r--r--src/libsystemd-network/test-dhcp6-client.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsystemd-network/test-dhcp6-client.c b/src/libsystemd-network/test-dhcp6-client.c
index 178f536337..0c131a9897 100644
--- a/src/libsystemd-network/test-dhcp6-client.c
+++ b/src/libsystemd-network/test-dhcp6-client.c
@@ -581,7 +581,11 @@ static void test_client_information_cb(sd_dhcp6_client *client, int event,
if (verbose)
printf(" got DHCPv6 event %d\n", event);
+ assert_se(sd_dhcp6_client_set_information_request(client, false) == -EBUSY);
+ assert_se(sd_dhcp6_client_set_callback(client, NULL, e) >= 0);
+ assert_se(sd_dhcp6_client_stop(client) >= 0);
assert_se(sd_dhcp6_client_set_information_request(client, false) >= 0);
+
assert_se(sd_dhcp6_client_set_callback(client,
test_client_solicit_cb, e) >= 0);