[network-manager-vpnc/th/vpn-editor-split-bgo766170: 8/21] properties/tests: use nmtst_init() to setup test
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-vpnc/th/vpn-editor-split-bgo766170: 8/21] properties/tests: use nmtst_init() to setup test
- Date: Mon, 9 May 2016 12:32:35 +0000 (UTC)
commit 086c17c00f24a2337ec7cd7af1a60f2329ebee07
Author: Thomas Haller <thaller redhat com>
Date: Mon May 9 11:20:15 2016 +0200
properties/tests: use nmtst_init() to setup test
properties/tests/test-import-export.c | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/properties/tests/test-import-export.c b/properties/tests/test-import-export.c
index 06b0a2f..46c5c51 100644
--- a/properties/tests/test-import-export.c
+++ b/properties/tests/test-import-export.c
@@ -610,16 +610,15 @@ test_empty_keyfile_string_null (const char *dir)
g_key_file_free (kf);
}
+NMTST_DEFINE ();
+
int main (int argc, char **argv)
{
GError *error = NULL;
int errsv;
- char *basename;
NMVpnEditorPlugin *plugin = NULL;
-#if !GLIB_CHECK_VERSION (2, 35, 0)
- g_type_init ();
-#endif
+ nmtst_init (&argc, &argv, TRUE);
if (mkdir (TMPDIR, 0755) != 0) {
errsv = errno;
@@ -650,10 +649,6 @@ int main (int argc, char **argv)
test_empty_keyfile_string_null (SRCDIR);
g_object_unref (plugin);
-
- basename = g_path_get_basename (argv[0]);
- fprintf (stdout, "%s: SUCCESS\n", basename);
- g_free (basename);
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]