mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 06:28:05 +02:00
platform/test: add test to call nm_platform_link_get_all()
This commit is contained in:
parent
987515ea73
commit
6f5cb596ba
1 changed files with 14 additions and 0 deletions
|
|
@ -40,6 +40,19 @@ test_init_linux_platform (void)
|
|||
|
||||
/******************************************************************/
|
||||
|
||||
static void
|
||||
test_link_get_all (void)
|
||||
{
|
||||
gs_unref_object NMPlatform *platform = NULL;
|
||||
gs_unref_array GArray *links = NULL;
|
||||
|
||||
platform = g_object_new (NM_TYPE_LINUX_PLATFORM, NULL);
|
||||
|
||||
links = nm_platform_link_get_all (platform);
|
||||
}
|
||||
|
||||
/******************************************************************/
|
||||
|
||||
NMTST_DEFINE ();
|
||||
|
||||
int
|
||||
|
|
@ -48,6 +61,7 @@ main (int argc, char **argv)
|
|||
nmtst_init_assert_logging (&argc, &argv, "INFO", "DEFAULT");
|
||||
|
||||
g_test_add_func ("/general/init_linux_platform", test_init_linux_platform);
|
||||
g_test_add_func ("/general/link_get_all", test_link_get_all);
|
||||
|
||||
return g_test_run ();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue