Bug 56300 - [dbus-glib] test-profile testcase issues
Summary: [dbus-glib] test-profile testcase issues
Status: RESOLVED DUPLICATE of bug 40711
Alias: None
Product: dbus
Classification: Unclassified
Component: GLib (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Simon McVittie
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-22 22:24 UTC by Dan Williams
Modified: 2012-12-04 17:40 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Dan Williams 2012-10-22 22:24:05 UTC
Two issues:

1) we need a g_type_init() at the start main() as for some reason that's not done elsewhere

2) the testcase exits prematurely inside dbus_shutdown() with status 1, failing the testcase:

#0  __GI__exit (status=status@entry=1) at ../sysdeps/unix/sysv/linux/_exit.c:29
#1  0x000000318e42bb89 in _dbus_exit (code=code@entry=1) at dbus-sysdeps-unix.c:2693
#2  0x000000318e40df88 in _dbus_connection_update_dispatch_status_and_unlock (connection=0x619f80, new_status=<optimized out>) at dbus-connection.c:4300
#3  _dbus_connection_update_dispatch_status_and_unlock (connection=0x619f80, new_status=DBUS_DISPATCH_COMPLETE) at dbus-connection.c:4266
#4  0x000000318e40e06f in dbus_connection_pop_message (connection=connection@entry=0x619f80) at dbus-connection.c:4083
#5  0x000000318e40e9e8 in close_connection_on_shutdown (connection=0x619f80) at dbus-connection.c:1529
#6  0x000000318e40ea52 in shared_connections_shutdown (data=<optimized out>) at dbus-connection.c:1555
#7  0x000000318e428f21 in dbus_shutdown () at dbus-memory.c:807
#8  0x0000000000402403 in main (argc=<optimized out>, argv=0x7fffffffe018) at test-profile.c:1154

which for the dbus 1.4.10 that I have installed, corresponds to:

      if (connection->exit_on_disconnect)
        {
          CONNECTION_UNLOCK (connection);            
          
          _dbus_verbose ("Exiting on Disconnected signal\n");
----->    _dbus_exit (1);
          _dbus_assert_not_reached ("Call to exit() returned");
        }
Comment 1 Dan Williams 2012-10-22 22:25:06 UTC
FWIW if you want to run the test quickly, you can:

DBUS_TEST_GLIB_RUN_TEST_SCRIPT=1 DBUS_TOP_SRCDIR=`pwd` test/core/.libs/test-profile all
Comment 2 Dan Williams 2012-12-04 17:40:08 UTC

*** This bug has been marked as a duplicate of bug 40711 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.