Check Tutorial
Prev | Chapter 4. Advanced Features | Next

# 4.6. Test timeouts

To be certain that a test won't hang indefinitely, all tests are run with a timeout (default 3 seconds). If the test is not finished within that time, it is killed and logged as an error. The timeout for a specific test case (not an individual test) can be changed with the `tcase_set_timeout()` function. The default timeout used for all test cases can be changed with the environment variable CK_DEFAULT_TIMEOUT, of course this does not override a specifically set timeout.

All timeout arguments are in seconds and a timeout of 0 seconds turns off the timeout functionality.

The timeout functionality is only available in CK_FORK mode.

Prev | Home | Next
Testing signal handling | Up | Test Logging