~ubuntu-branches/ubuntu/maverick/dbus/maverick-security

« back to all changes in this revision

Viewing changes to bus/test-main.c

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-27 13:06:32 UTC
  • mfrom: (1.1.23 upstream)
  • Revision ID: james.westby@ubuntu.com-20100927130632-bqs145trvchd2lmf
Tags: 1.4.0-0ubuntu1
* New upstream release
 - Fixes https://bugs.freedesktop.org/show_bug.cgi?id=17754 Race condition in protected_change_timeout
 - Requested by various upstream KDE developers http://lists.kde.org/?t=128514970000004&r=1&w=2

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 *
22
22
 */
23
23
 
 
24
#include <config.h>
24
25
#include "test.h"
25
26
#include <stdio.h>
26
27
#include <stdlib.h>
27
28
#include <dbus/dbus-string.h>
28
29
#include <dbus/dbus-sysdeps.h>
29
30
#include <dbus/dbus-internals.h>
 
31
#include <dbus/dbus-message-private.h>
30
32
#include "selinux.h"
31
33
 
32
34
#ifdef DBUS_BUILD_TESTS
69
71
  if (_dbus_getenv ("DBUS_TEST_SELINUX"))
70
72
    bus_selinux_shutdown ();
71
73
  check_memleaks (progname);
 
74
  _dbus_check_fdleaks();
72
75
}
73
76
 
74
77
int
138
141
    die ("service reload");
139
142
  test_post_hook ();
140
143
 
 
144
#ifdef HAVE_UNIX_FD_PASSING
 
145
  test_pre_hook ();
 
146
  printf ("%s: Running unix fd passing test\n", argv[0]);
 
147
  if (!bus_unix_fds_passing_test (&test_data_dir))
 
148
    die ("unix fd passing");
 
149
  test_post_hook ();
 
150
#endif
 
151
 
141
152
  printf ("%s: Success\n", argv[0]);
142
153
 
143
154