Skip to content
  • Marek Chalupa's avatar
    tests: add timeout · 7bf8049c
    Marek Chalupa authored and Pekka Paalanen's avatar Pekka Paalanen committed
    
    
    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: default avatarMarek Chalupa <mchqwerty@gmail.com>
    Reviewed-by: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
    7bf8049c