mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-28 06:20:36 +01:00
ifcfg-rh/tests: add unit test for reading DEVTIMEOUT (connection.wait-device-timeout)
(cherry picked from commit 9cbf4c2825)
This commit is contained in:
parent
5a44792e41
commit
c81d12bc69
2 changed files with 5 additions and 0 deletions
|
|
@ -3,3 +3,4 @@ DEVICE=eth0
|
|||
BOOTPROTO=autoip
|
||||
IPV4_FAILURE_FATAL=yes
|
||||
PEERDNS=no
|
||||
DEVTIMEOUT=2.6
|
||||
|
|
|
|||
|
|
@ -1738,6 +1738,7 @@ static void
|
|||
test_read_wired_autoip (void)
|
||||
{
|
||||
gs_unref_object NMConnection *connection = NULL;
|
||||
NMSettingConnection *s_con;
|
||||
NMSettingIPConfig *s_ip4;
|
||||
char *unmanaged = NULL;
|
||||
|
||||
|
|
@ -1751,6 +1752,9 @@ test_read_wired_autoip (void)
|
|||
g_assert_cmpstr (nm_setting_ip_config_get_method (s_ip4), ==, NM_SETTING_IP4_CONFIG_METHOD_LINK_LOCAL);
|
||||
g_assert (!nm_setting_ip_config_get_may_fail (s_ip4));
|
||||
g_assert (nm_setting_ip_config_get_ignore_auto_dns (s_ip4));
|
||||
|
||||
s_con = nm_connection_get_setting_connection (connection);
|
||||
g_assert_cmpint (nm_setting_connection_get_wait_device_timeout (s_con), ==, 2600);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue