mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-31 09:00:13 +01:00
tests: fix setting MAC address in tests
MAC address properties are strings now. The change has been done by commit
3a54d05098. But this place was not updated.
Reported by lrintel in copr.
This commit is contained in:
parent
d9806a9cae
commit
d19770102e
1 changed files with 1 additions and 3 deletions
|
|
@ -538,13 +538,12 @@ test_connection_match_wired (void)
|
|||
GSList *connections = NULL;
|
||||
NMSettingWired *s_wired;
|
||||
char *subchan_arr[] = { "0.0.8000", "0.0.8001", "0.0.8002", NULL };
|
||||
GByteArray *mac;
|
||||
const char *mac = "52:54:00:ab:db:23";
|
||||
|
||||
orig = _match_connection_new ();
|
||||
copy = nm_simple_connection_new_clone (orig);
|
||||
connections = g_slist_append (connections, copy);
|
||||
|
||||
mac = nm_utils_hwaddr_atoba ("52:54:00:ab:db:23", ETH_ALEN);
|
||||
s_wired = nm_connection_get_setting_wired (orig);
|
||||
g_assert (s_wired);
|
||||
g_object_set (G_OBJECT (s_wired),
|
||||
|
|
@ -553,7 +552,6 @@ test_connection_match_wired (void)
|
|||
NM_SETTING_WIRED_S390_SUBCHANNELS, subchan_arr,
|
||||
NM_SETTING_WIRED_S390_NETTYPE, "qeth",
|
||||
NULL);
|
||||
g_byte_array_free (mac, TRUE);
|
||||
|
||||
s_wired = nm_connection_get_setting_wired (copy);
|
||||
g_assert (s_wired);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue