initrd/tests: use a valid combination of device and interface name for testing

(cherry picked from commit c27f5030e9)
This commit is contained in:
Dan Horák 2019-10-22 11:56:41 +02:00 committed by Lubomir Rintel
parent deff651704
commit 31d44a28e1

View file

@ -801,7 +801,7 @@ test_rd_znet (void)
{
gs_unref_hashtable GHashTable *connections = NULL;
const char *const*const ARGV = NM_MAKE_STRV ("ip=10.11.12.13::10.11.12.1:24:foo.example.com:enc800:none",
"rd.znet=ctc,0.0.0800,0.0.0801,layer2=0,portno=1");
"rd.znet=qeth,0.0.0800,0.0.0801,0.0.0802,layer2=0,portno=1");
GHashTableIter h_iter;
NMConnection *connection;
NMSettingWired *s_wired;
@ -830,7 +830,8 @@ test_rd_znet (void)
g_assert (v_subchannels);
g_assert_cmpstr (v_subchannels[0], ==, "0.0.0800");
g_assert_cmpstr (v_subchannels[1], ==, "0.0.0801");
g_assert_cmpstr (v_subchannels[2], ==, NULL);
g_assert_cmpstr (v_subchannels[2], ==, "0.0.0802");
g_assert_cmpstr (v_subchannels[3], ==, NULL);
g_assert_cmpint (nm_setting_wired_get_num_s390_options (s_wired), ==, G_N_ELEMENTS (s390_options));
for (i_s390_options_keys = 0; i_s390_options_keys < G_N_ELEMENTS (s390_options); i_s390_options_keys++) {