mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-13 23:20:34 +01:00
config/test: move test over to nm-test-util
(partially cherry picked from commit 13c7f6a56d)
Conflicts:
src/tests/config/test-config.c
This commit is contained in:
parent
91144ee070
commit
36a136fb58
1 changed files with 6 additions and 5 deletions
|
|
@ -27,6 +27,9 @@
|
|||
#include <nm-config.h>
|
||||
#include "nm-test-device.h"
|
||||
#include "nm-fake-platform.h"
|
||||
#include "nm-logging.h"
|
||||
|
||||
#include "nm-test-utils.h"
|
||||
|
||||
static void
|
||||
setup_config (const char *config_file, const char *config_dir, ...)
|
||||
|
|
@ -279,14 +282,12 @@ test_config_confdir_parse_error (void)
|
|||
g_assert_error (error, G_KEY_FILE_ERROR, G_KEY_FILE_ERROR_PARSE);
|
||||
}
|
||||
|
||||
NMTST_DEFINE ();
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
#if !GLIB_CHECK_VERSION (2, 35, 0)
|
||||
g_type_init ();
|
||||
#endif
|
||||
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
nmtst_init_assert_logging (&argc, &argv);
|
||||
|
||||
nm_fake_platform_setup ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue