summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-03-07 22:38:22 +0100
committerThomas Haller <thaller@redhat.com>2019-03-11 16:43:20 +0100
commit355cbbfb5c248791a954ae3cdf70b4b705cc7c2a (patch)
treef9c07468f2a1619e4e9d89c6566d99f792b2d53c /src/tests
parent4251f4e4764a4ec11765390bc36c2a007382009d (diff)
downloadNetworkManager-355cbbfb5c248791a954ae3cdf70b4b705cc7c2a.tar.gz
core: assert for valid NM_DEVICE_DEVICE_TYPE setting
(cherry picked from commit 7dd44d6dc894ac262f6825d1b992376a92f9f1e5)
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/config/nm-test-device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/config/nm-test-device.c b/src/tests/config/nm-test-device.c
index c21317692a..3a8ef266e8 100644
--- a/src/tests/config/nm-test-device.c
+++ b/src/tests/config/nm-test-device.c
@@ -75,6 +75,7 @@ nm_test_device_new (const char *hwaddr)
return g_object_new (NM_TYPE_TEST_DEVICE,
NM_DEVICE_IFACE, "dummy",
NM_DEVICE_PERM_HW_ADDRESS, hwaddr,
+ NM_DEVICE_DEVICE_TYPE, NM_DEVICE_TYPE_ETHERNET,
NULL);
}