Pekka Paalanen
da6b1a8e47
tests: support testing fd inheritance over exec
...
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>
2012-04-20 15:06:27 +03:00
Pekka Paalanen
e0561ac68d
tests: detect fd leaks
...
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>
2012-04-20 14:58:31 +03:00
Pekka Paalanen
55489883c4
tests: add sanity-test
...
Test the testing framework itself, so that it catches the errors we
expect it to.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-04-19 14:46:52 +03:00
Pekka Paalanen
84464a3e9b
tests: put common test source files in a variable
...
Makes all test targets have the same common make dependencies.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-04-19 12:12:13 +03:00
Kristian Høgsberg
fa5f7b1191
server: Add client destroy signal
2012-04-13 09:53:15 -04:00
U. Artie Eoff
a0e590a0f3
Add simple memory leak check to all tests.
...
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>
2012-03-24 14:37:42 -04:00
Ander Conselvan de Oliveira
707623f0cb
test: add a unit test for the event loop post dispatch check
2012-03-20 15:49:27 -04:00
Kristian Høgsberg
efab74e956
tests: Add wl_list tests
2012-03-05 21:38:25 -05:00
Gaetan Nadon
c1804b5735
tests: makefile error: missing test-runner.h
...
Detected by running distcheck
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2012-03-05 10:57:57 -05:00
Gaetan Nadon
bb4b05bc8d
check: connection-test fails to link to ffi
...
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>
2012-03-04 15:03:03 -05:00
Kristian Høgsberg
22834deca7
tests: Add connection tests
2012-03-02 23:59:50 -05:00
Kristian Høgsberg
62d2569954
tests: Add Unit tests for wl_map and wl_array data structures
...
We use a simple test-runner helper that runs each test in a separate
process and reports the pass/fail rate at the end.
2012-03-02 18:05:33 -05:00