Bug 52618 - socket-test fail if enviroment XDG_RUNTIME_DIR is not set
Summary: socket-test fail if enviroment XDG_RUNTIME_DIR is not set
Status: RESOLVED NOTABUG
Alias: None
Product: Wayland
Classification: Unclassified
Component: wayland (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium minor
Assignee: Wayland bug list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-28 12:31 UTC by Sandro Cavazzoni
Modified: 2012-10-25 15:58 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Sandro Cavazzoni 2012-07-28 12:31:18 UTC
Running wayland checks without previously set XDG_RUNTIME_DIR the socket-test fail with the following error:

lt-socket-test: test-runner.c:98: run_test: Assertion `cur_alloc == num_alloc && "memory leak detected in test."' failed.
test "socket_path_overflow_server_create":	signal 6, fail.
error: socket path "./aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" plus null terminator exceeds 108 bytes
lt-socket-test: test-runner.c:98: run_test: Assertion `cur_alloc == num_alloc && "memory leak detected in test."' failed.
test "socket_path_overflow_client_connect":	signal 6, fail.
2 tests, 0 pass, 2 fail
FAIL: socket-test


Setting XDG_RUNTIME_DIR before run the test it's the actual workaround to the bug (thanks to pq on ircnet for the hint)
Comment 1 Kristian Høgsberg 2012-10-25 15:58:18 UTC
A valid XDG_RUNTIME_DIR setting is required for wayland to work correctly.  

0a633704e6636c475f20a82e96b6ed03a7bc9c18 makes the test case fail cleanly and with a helpful message in case XDG_RUNTIME_DIR isn't set.


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.