TIMEOUT_SIGNAL_NAME.rst 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. TIMEOUT_SIGNAL_NAME
  2. -------------------
  3. .. versionadded:: 3.27
  4. Specify a custom signal to send to a test process when its timeout is reached.
  5. This is available only on platforms supporting POSIX signals.
  6. It is not available on Windows.
  7. The name must be one of the following:
  8. ``SIGINT``
  9. Interrupt.
  10. ``SIGQUIT``
  11. Quit.
  12. ``SIGTERM``
  13. Terminate.
  14. ``SIGUSR1``
  15. User defined signal 1.
  16. ``SIGUSR2``
  17. User defined signal 2.
  18. The custom signal is sent to the test process to give it a chance
  19. to exit gracefully during a grace period:
  20. * If the test process created any children, it is responsible for
  21. terminating them too.
  22. * The grace period length is determined by the
  23. :prop_test:`TIMEOUT_SIGNAL_GRACE_PERIOD` test property.
  24. * If the test process does not terminate before the grace period ends,
  25. :manual:`ctest(1)` will force termination of its entire process tree
  26. via ``SIGSTOP`` and ``SIGKILL``.
  27. See also :variable:`CTEST_TEST_TIMEOUT`,
  28. :prop_test:`TIMEOUT`, and :prop_test:`TIMEOUT_AFTER_MATCH`.