From d19770102e8e231888f10e3a4e45bbd9491fe802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Thu, 11 Dec 2014 11:29:19 +0100 Subject: [PATCH] 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. --- src/tests/test-general.c | 4 +--- 1 file changed, 1 insertion(+), 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);