summaryrefslogtreecommitdiffstats
path: root/src/libsystemd-network/test-dhcp6-client.c
diff options
context:
space:
mode:
authorSusant Sahani <ssahani@vmware.com>2020-05-17 11:18:46 +0200
committerSusant Sahani <ssahani@vmware.com>2020-05-17 11:18:46 +0200
commit28a060688f3a744eedfbfe61dc3894090df32193 (patch)
tree004d27637d71d8c89e741d274ce7bf2808adb480 /src/libsystemd-network/test-dhcp6-client.c
parentnetwork: DHCPv6 - Add support set arbitary request options (diff)
downloadsystemd-28a060688f3a744eedfbfe61dc3894090df32193.tar.xz
systemd-28a060688f3a744eedfbfe61dc3894090df32193.zip
dhcpv6 tests: Update since we allow arbitrary options to be set
Diffstat (limited to 'src/libsystemd-network/test-dhcp6-client.c')
-rw-r--r--src/libsystemd-network/test-dhcp6-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-network/test-dhcp6-client.c b/src/libsystemd-network/test-dhcp6-client.c
index 4b89b320b7..3a68f1fe71 100644
--- a/src/libsystemd-network/test-dhcp6-client.c
+++ b/src/libsystemd-network/test-dhcp6-client.c
@@ -61,12 +61,12 @@ static int test_client_basic(sd_event *e) {
assert_se(sd_dhcp6_client_set_fqdn(client, "~host") == -EINVAL);
assert_se(sd_dhcp6_client_set_fqdn(client, "~host.domain") == -EINVAL);
- assert_se(sd_dhcp6_client_set_request_option(client, SD_DHCP6_OPTION_CLIENTID) == -EINVAL);
+ assert_se(sd_dhcp6_client_set_request_option(client, SD_DHCP6_OPTION_CLIENTID) == 0);
assert_se(sd_dhcp6_client_set_request_option(client, SD_DHCP6_OPTION_DNS_SERVERS) == -EEXIST);
assert_se(sd_dhcp6_client_set_request_option(client, SD_DHCP6_OPTION_NTP_SERVER) == -EEXIST);
assert_se(sd_dhcp6_client_set_request_option(client, SD_DHCP6_OPTION_SNTP_SERVERS) == -EEXIST);
assert_se(sd_dhcp6_client_set_request_option(client, SD_DHCP6_OPTION_DOMAIN_LIST) == -EEXIST);
- assert_se(sd_dhcp6_client_set_request_option(client, 10) == -EINVAL);
+ assert_se(sd_dhcp6_client_set_request_option(client, 10) == 0);
assert_se(sd_dhcp6_client_set_information_request(client, 1) >= 0);
v = 0;