summaryrefslogtreecommitdiff
path: root/src/devices/tests
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-04-06 21:16:49 +0200
committerThomas Haller <thaller@redhat.com>2016-04-11 11:26:37 +0200
commit25d826ec49585953a5e4ec50995c864ed0bf257f (patch)
tree71d1159631fb5216e62a62c89a5c5e59b11dc01f /src/devices/tests
parent93c81a809d4c8eb6845e12f6c9b762e07cbf37e9 (diff)
downloadNetworkManager-25d826ec49585953a5e4ec50995c864ed0bf257f.tar.gz
platform/tests/trivial: rename init_tests() and setup_tests() function
Make it clear that they are nmtstp functions, i.e. they are found in the header "test-common.h".
Diffstat (limited to 'src/devices/tests')
-rw-r--r--src/devices/tests/test-arping.c4
-rw-r--r--src/devices/tests/test-lldp.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/tests/test-arping.c b/src/devices/tests/test-arping.c
index 72d28a7ac4..f22d85f0e4 100644
--- a/src/devices/tests/test-arping.c
+++ b/src/devices/tests/test-arping.c
@@ -126,13 +126,13 @@ fixture_teardown (test_fixture *fixture, gconstpointer user_data)
}
void
-init_tests (int *argc, char ***argv)
+_nmtstp_init_tests (int *argc, char ***argv)
{
nmtst_init_with_logging (argc, argv, NULL, "ALL");
}
void
-setup_tests (void)
+_nmtstp_setup_tests (void)
{
g_test_add ("/arping/1", test_fixture, NULL, fixture_setup, test_arping_1, fixture_teardown);
g_test_add ("/arping/2", test_fixture, NULL, fixture_setup, test_arping_2, fixture_teardown);
diff --git a/src/devices/tests/test-lldp.c b/src/devices/tests/test-lldp.c
index 1b7f536d03..bff85e6c94 100644
--- a/src/devices/tests/test-lldp.c
+++ b/src/devices/tests/test-lldp.c
@@ -435,13 +435,13 @@ _test_recv_fixture_teardown (TestRecvFixture *fixture, gconstpointer user_data)
/*****************************************************************************/
void
-init_tests (int *argc, char ***argv)
+_nmtstp_init_tests (int *argc, char ***argv)
{
nmtst_init_assert_logging (argc, argv, "WARN", "ALL");
}
void
-setup_tests (void)
+_nmtstp_setup_tests (void)
{
#define _TEST_ADD_RECV(testpath, testdata) \
g_test_add (testpath, TestRecvFixture, testdata, _test_recv_fixture_setup, test_recv, _test_recv_fixture_teardown)