ifcfg-rh/tests: rename test function connection_from_file_test()

Test functions shall have a nmtst_ prefix. Then they don't need
a code comment that they are for testing only.
This commit is contained in:
Thomas Haller 2017-10-20 20:56:25 +02:00
parent 48d23b3ab7
commit 18048ab20c
3 changed files with 13 additions and 14 deletions

View file

@ -5433,11 +5433,11 @@ connection_from_file (const char *filename,
}
NMConnection *
connection_from_file_test (const char *filename,
const char *network_file,
const char *test_type,
char **out_unhandled,
GError **error)
nmtst_connection_from_file (const char *filename,
const char *network_file,
const char *test_type,
char **out_unhandled,
GError **error)
{
return connection_from_file_full (filename,
network_file,

View file

@ -30,11 +30,10 @@ NMConnection *connection_from_file (const char *filename,
guint devtimeout_from_file (const char *filename);
/* for test-ifcfg-rh */
NMConnection *connection_from_file_test (const char *filename,
const char *network_file,
const char *test_type,
char **out_unhandled,
GError **error);
NMConnection *nmtst_connection_from_file (const char *filename,
const char *network_file,
const char *test_type,
char **out_unhandled,
GError **error);
#endif /* __READER_H__ */

View file

@ -260,8 +260,8 @@ _connection_from_file (const char *filename,
g_assert (!out_unhandled || !*out_unhandled);
connection = connection_from_file_test (filename, network_file, test_type,
out_unhandled ?: &unhandled_fallback, &error);
connection = nmtst_connection_from_file (filename, network_file, test_type,
out_unhandled ?: &unhandled_fallback, &error);
g_assert_no_error (error);
g_assert (!unhandled_fallback);
@ -282,7 +282,7 @@ _connection_from_file_fail (const char *filename,
GError *local = NULL;
char *unhandled = NULL;
connection = connection_from_file_test (filename, network_file, test_type, &unhandled, &local);
connection = nmtst_connection_from_file (filename, network_file, test_type, &unhandled, &local);
g_assert (!connection);
g_assert (local);