gstreamer/libs/gst/check/libcheck
Sebastian Dröge 7646cef644 check: Catch SIGTERM and SIGINT in the test runner and kill all currently running tests
Otherwise e.g. ctrl+c in the test runner exits the test runner, while the test
itself is still running in the background, uses CPU and memory and potentially
never exits (e.g. if the test ran into a deadlock or infinite loop).

The reason why we have to manually kill the actual tests is that after
forking they will be moved to their own process group, and as such are
not receiving any signals sent to the test runner anymore. This is supposed
to be done to make it easier to kill a test, which it only really does if
the test itself is forking off new processes.

This fix is not complete though. SIGKILL can't be caught at all, and error
signals like SIGSEGV, SIGFPE are currently not caught. The latter will only
happen if there is a bug in the test runner itself, and as such seem less
important.
2015-03-21 15:19:43 +01:00
..
alarm.c check: Import version 0.9.14 2014-12-06 17:48:16 +01:00
check.c check: Have autotools generate internal-check.h 2014-12-16 16:32:39 +01:00
check.h.in check: Avoid requring (u)intmax_t in macros 2014-12-07 17:32:30 +01:00
check_error.c check: Apply GStreamer-specific patches 2014-12-06 17:48:25 +01:00
check_error.h check: Apply GStreamer-specific patches 2014-12-06 17:48:25 +01:00
check_impl.h check: Import version 0.9.14 2014-12-06 17:48:16 +01:00
check_list.c check: Apply GStreamer-specific patches 2014-12-06 17:48:25 +01:00
check_list.h check: Import version 0.9.14 2014-12-06 17:48:16 +01:00
check_log.c check: Have autotools generate internal-check.h 2014-12-16 16:32:39 +01:00
check_log.h check: Import version 0.9.14 2014-12-06 17:48:16 +01:00
check_msg.c check: Use mkstemp instead of tempnam if possible 2015-03-11 16:14:24 +00:00
check_msg.h check: Import version 0.9.14 2014-12-06 17:48:16 +01:00
check_pack.c check: Have autotools generate internal-check.h 2014-12-16 16:32:39 +01:00
check_pack.h check: Import version 0.9.14 2014-12-06 17:48:16 +01:00
check_print.c check: Have autotools generate internal-check.h 2014-12-16 16:32:39 +01:00
check_print.h check: Import version 0.9.14 2014-12-06 17:48:16 +01:00
check_run.c check: Catch SIGTERM and SIGINT in the test runner and kill all currently running tests 2015-03-21 15:19:43 +01:00
check_str.c check: Have autotools generate internal-check.h 2014-12-16 16:32:39 +01:00
check_str.h check: Import version 0.9.14 2014-12-06 17:48:16 +01:00
clock_gettime.c check: Fix compilation error for iOS 2014-12-06 19:46:29 +01:00
libcompat.c check: Import version 0.9.14 2014-12-06 17:48:16 +01:00
libcompat.h check: Apply GStreamer-specific patches 2014-12-06 17:48:25 +01:00
localtime_r.c check: Import version 0.9.14 2014-12-06 17:48:16 +01:00
Makefile.am check: Have autotools generate internal-check.h 2014-12-16 16:32:39 +01:00
strsignal.c check: Import version 0.9.14 2014-12-06 17:48:16 +01:00
timer_create.c check: Import version 0.9.14 2014-12-06 17:48:16 +01:00
timer_delete.c check: Import version 0.9.14 2014-12-06 17:48:16 +01:00
timer_settime.c check: Import version 0.9.14 2014-12-06 17:48:16 +01:00