Bryce Harrington
2b236af9b7
socket-test: Refactor if check into the assert
...
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
2016-01-13 15:21:05 -08:00
Bryce Harrington
69a5a6d16c
socket-test: Fix some comment typos
...
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
2016-01-13 15:20:57 -08:00
Bryce Harrington
724b6e4ebe
socket-test: Fix style on multi-line comment
...
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2015-06-12 15:31:24 -07:00
Bryce Harrington
773babedfc
tests: Update boilerplate from MIT X11 license to MIT Expat license
...
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2015-06-12 15:31:24 -07:00
Marek Chalupa
4c7d1af70b
tests: add tests for bug in adding socket
...
Last set of commits introduced a bug. When adding of socket with
a particular name fails, then the socket and its lockfile are deleted
regardless who created the socket.
/* OK */
wl_display_add_socket(display, "wayland-0");
/* this call fails and will delete the original socket */
wl_display_add_socket(display, "wayland-0");
Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-08-07 16:04:17 +03:00
Kristian Høgsberg
2be6e0ed14
tests: Quiet warning
2012-08-29 14:12:11 -04:00
Philipp Brüschweiler
0a633704e6
socket-test: don't try to be clever, fail if no XDG_RUNTIME_DIR is set
...
Not only setenv(), also putenv() allocates memory on my system
(glibc 2.16.0). Just fail with a clear message if XDG_RUNTIME_DIR is
not set.
https://bugs.freedesktop.org/show_bug.cgi?id=52618
2012-08-14 10:10:47 -04:00
Dylan Noblesmith
d2bcffc470
tests: test that path names longer than 108 bytes are rejected
...
These would either overflow the struct sockaddr_un, or
be truncated and leave a non-null-terminated string.
2012-06-30 20:01:20 +00:00