~ubuntu-branches/ubuntu/wily/gnome-software/wily-proposed

« back to all changes in this revision

Viewing changes to src/plugins/gs-self-test.c

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2015-07-22 00:03:04 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20150722000304-ctnkwytku720qft7
Tags: 3.16.4-1
* New upstream release.
* Update Build-Depends as per configure.ac:
  - Add appstream-util.
  - Add libpolkit-gobject-1-dev.
  - Bump libappstream-glib-dev to (>= 0.3.4).
  - Bump libgtk-3-dev to (>= 3.16).
* Drop hard-coded dependency on libappstream-glib7 now that the library
  provides a symbols file.
* Use dh_install's exclude (-X) functionality to not install the .a and .la
  files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include <glib-object.h>
27
27
#include <gtk/gtk.h>
28
28
 
 
29
#include "gs-cleanup.h"
29
30
#include "gs-moduleset.h"
30
31
 
31
32
static void
34
35
        gboolean ret;
35
36
        gchar **data;
36
37
        GError *error = NULL;
37
 
        GsModuleset *ms;
 
38
        _cleanup_object_unref_ GsModuleset *ms = NULL;
38
39
 
39
40
        /* not avaiable in make distcheck */
40
41
        if (!g_file_test ("./moduleset-test.xml", G_FILE_TEST_EXISTS))
62
63
        g_assert_cmpint (g_strv_length (data), ==, 1);
63
64
        g_assert_cmpstr (data[0], ==, "gnome-shell.desktop");
64
65
        g_assert_cmpstr (data[1], ==, NULL);
65
 
 
66
 
        g_object_unref (ms);
67
66
}
68
67
 
69
68
int