Bug 11671 - Glib bindings testsuite requires abstract sockets
Summary: Glib bindings testsuite requires abstract sockets
Status: RESOLVED FIXED
Alias: None
Product: dbus
Classification: Unclassified
Component: GLib (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Rob Taylor
QA Contact: John (J5) Palmieri
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-20 09:51 UTC by Peter O'Gorman, The Written Word, Inc.
Modified: 2008-05-27 21:28 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
gmake check output (4.98 KB, text/plain)
2007-08-09 13:36 UTC, Peter O'Gorman, The Written Word, Inc.
Details

Description Peter O'Gorman, The Written Word, Inc. 2007-07-20 09:51:04 UTC
Running make check for the glib bindings fails on non-linux platforms, because in test/core/peer-client.c it explicitly requests an abstract socket -
 conn = dbus_g_connection_open ("unix:abstract=/tmp/dbus-glib-peer.sock", &error);
Comment 1 Peter O'Gorman, The Written Word, Inc. 2007-07-20 16:52:54 UTC
I guess this is a deeper problem, when I change the socket path from abstract to a path, the tests still fail on platforms without abstract sockets (and on linux if I configure dbus with --disable-abstract-sockets).

Is this simply a problem with the tests, or can we look forward to dbus-glib not working on non-linux systems?
Comment 2 Ross Burton 2007-08-09 12:36:54 UTC
dbus-glib doesn't require abstract sockets.

If you change the path in both of the peer tests, it should work.  If it doesn't, please attach a log.
Comment 3 Peter O'Gorman, The Written Word, Inc. 2007-08-09 13:36:10 UTC
Created attachment 11067 [details]
gmake check output

Is there a better log that I can attach, this does not seem to be verbose enough for any kind of diagnosis.
Steps, on i686 red hat enterprise linux 3:
configure and install dbus with --disable-abstract-sockets.
configure dbus-glib-0.74 with --disable-abstract-sockets, and remove the abstract from the test cases.
gmake && gmake check
Comment 4 Colin Walters 2008-05-27 21:28:36 UTC
commit a94e11973467e1b2cc43ba1e77b7413655b1dff7
Author: Colin Walters <walters@verbum.org>
Date:   Wed May 28 00:25:57 2008 -0400

    Bug 11671: Don't use well known name in /tmp
    
    This as a side effect fixes the test suite on Solaris.



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.