~ubuntu-branches/ubuntu/vivid/sflphone/vivid

« back to all changes in this revision

Viewing changes to gnome/tests/check_dbus.c

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2013-06-30 11:40:56 UTC
  • mfrom: (4.1.18 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130630114056-0np50jkyqo6vnmii
Tags: 1.2.3-2
* changeset_r92d62cfc54732bbbcfff2b1d36c096b120b981a5.diff 
  - fixes automatic endian detection 
* Update Vcs: fixes vcs-field-not-canonical

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *  Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Savoir-Faire Linux Inc.
 
2
 *  Copyright (C) 2004-2012 Savoir-Faire Linux Inc.
3
3
 *  Author: Julien Bonjean <julien.bonjean@savoirfairelinux.com>
4
4
 *
5
5
 *  This program is free software; you can redistribute it and/or modify
14
14
 *
15
15
 *  You should have received a copy of the GNU General Public License
16
16
 *  along with this program; if not, write to the Free Software
17
 
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
17
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA.
18
18
 *
19
19
 *  If you modify this program, or any covered work, by linking or
20
20
 *  combining it with the OpenSSL project's OpenSSL library (or a
30
30
#include <stdlib.h>
31
31
 
32
32
#include "../src/dbus/dbus.h"
 
33
#include "../src/sflphone_client.h"
 
34
 
 
35
#define XML_OUTPUT  "gnome-check-dbus.xml"
33
36
 
34
37
START_TEST(test_dbus_connect)
35
38
{
 
39
    g_type_init();
36
40
    GError *error = NULL;
37
 
    fail_unless(dbus_connect(&error) == TRUE, "dbus_connect () returns FALSE");
 
41
    SFLPhoneClient *client = sflphone_client_new();
 
42
    fail_unless(dbus_connect(&error, client) == TRUE, "dbus_connect () returns FALSE");
 
43
    g_object_unref(client);
38
44
}
39
45
END_TEST
40
46
 
56
62
    int number_failed;
57
63
    Suite *s = dbus_suite();
58
64
    SRunner *sr = srunner_create(s);
 
65
    srunner_set_xml(sr, XML_OUTPUT);
59
66
    srunner_run_all(sr, CK_NORMAL);
60
67
    number_failed = srunner_ntests_failed(sr);
61
68
    srunner_free(sr);