diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2014-12-11 11:29:19 +0100 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2014-12-11 11:33:32 +0100 |
commit | d19770102e8e231888f10e3a4e45bbd9491fe802 (patch) | |
tree | 664f3a82ffb32ff5178c42f8c4141a86c4930da1 | |
parent | d9806a9cae11354014126d577f2dab9d9894e6ef (diff) | |
download | NetworkManager-d19770102e8e231888f10e3a4e45bbd9491fe802.tar.gz |
tests: fix setting MAC address in tests
MAC address properties are strings now. The change has been done by commit
3a54d050985d6ef2067b025571910a8ccd3cbd57. But this place was not updated.
Reported by lrintel in copr.
-rw-r--r-- | src/tests/test-general.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tests/test-general.c b/src/tests/test-general.c index 3f8ab65b65..f118156b37 100644 --- a/src/tests/test-general.c +++ b/src/tests/test-general.c @@ -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); |