[network-manager-vpnc/th/vpn-editor-split-bgo766170: 7/20]	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: 7/20]	properties/tests: use nmtst_init() to setup test
- Date: Tue, 10 May 2016 11:49:24 +0000 (UTC)
commit 04b97087d0d606983dfd9e62ceb939c2461d6196
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]