mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-20 12:50:33 +01:00
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:
parent
48d23b3ab7
commit
18048ab20c
3 changed files with 13 additions and 14 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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__ */
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue