| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Test wl_signal initialization, adding and getting listeners and emitting
|
| |
|
|
| |
Added a destroy signal to the wl_display object.
|
| |
|
|
|
|
|
|
| |
Check that after a callback removes a proxy that most likely will have
several events queued up with the same target proxy, no more callbacks
are invoked.
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
|
| |
|
|
|
| |
These would either overflow the struct sockaddr_un, or
be truncated and leave a non-null-terminated string.
|
| |
|
|
|
|
|
|
|
|
| |
It was failing with missing include files.
While here, destroy the ugly "../src/..." include
paths used in the tests that was just hacking around
this problem in the Makefile:
sed -i s/..\\/src\\/// tests/*.c
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
Make sure we include any generated headers from src/ as well, like
wayland-version.h.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some system C libraries do not offer SOCK_CLOEXEC flag.
Add a new header for OS compatibility wrappers. Wrap socket() calls into
wl_os_socket_cloexec() which makes sure the O_CLOEXEC flag gets set on
the file descriptor.
On systems having SOCK_CLOEXEC this uses the old socket() call, and
falls back if it fails due to the flag (kernel not supporting it).
wayland-os.h is private and not exported.
Add close-on-exec tests for both normal and forced fallback paths.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
|
| |
|
|
|
|
|
| |
Add facility for testing how (many) file descriptors survive an exec.
This allows implementing O_CLOEXEC tests.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
|
| |
|
|
|
|
|
|
| |
Detect file descriptor leaks in tests.
Add a sanity test to verify that we catch the leaks.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
|
| |
|
|
|
|
|
| |
Test the testing framework itself, so that it catches the errors we
expect it to.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
|
| |
|
|
|
|
| |
Makes all test targets have the same common make dependencies.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
|
| | |
|
| |
|
|
|
|
|
|
|
| |
Wrap all tests with a memory balance check to detect potential
memory leaks.
Fixed a few tests that had memory leaks contained in the tests
themselves.
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Detected by running distcheck
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
| |
|
|
|
|
|
| |
This prevents distcheck from completing.
Moving the -lffi at the end of the command fixes the problem.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
| | |
|
|
|
We use a simple test-runner helper that runs each test in a separate
process and reports the pass/fail rate at the end.
|