diff options
| author | Marek Chalupa <mchqwerty@gmail.com> | 2014-11-12 13:16:42 +0100 |
|---|---|---|
| committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2014-11-17 16:45:49 +0200 |
| commit | 7bf8049c484959f7ccc3262724466172dce786b6 (patch) | |
| tree | 35f6498842cb8f7d346d0978c5049a64d3b480f4 /tests/display-test.c | |
| parent | connection: abort if a listener function is NULL (diff) | |
| download | wayland-7bf8049c484959f7ccc3262724466172dce786b6.tar wayland-7bf8049c484959f7ccc3262724466172dce786b6.tar.gz wayland-7bf8049c484959f7ccc3262724466172dce786b6.tar.bz2 wayland-7bf8049c484959f7ccc3262724466172dce786b6.tar.lz wayland-7bf8049c484959f7ccc3262724466172dce786b6.tar.xz wayland-7bf8049c484959f7ccc3262724466172dce786b6.tar.zst wayland-7bf8049c484959f7ccc3262724466172dce786b6.zip | |
tests: add timeout
Add test_set_timeout() function that allows the test to
set timeout for its completition. Any other call to the function
re-sets the timeout to the new value. The timeouts can be turned off
(usefull when debugging) by setting evironment variable
WAYLAND_TESTS_NO_TIMEOUTS.
v2:
rename NO_TIMEOUTS to WAYLAND_TESTS_NO_TIMEOUTS
use unsigned int as argument of test_set_timeout()
improve printing of the message about timeout
Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'tests/display-test.c')
0 files changed, 0 insertions, 0 deletions
