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:
Thomas Haller 2015-01-07 17:09:52 +01:00
parent 91144ee070
commit 36a136fb58

View file

@ -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 ();