From: Christian Babeux Date: Tue, 2 Oct 2012 18:05:32 +0000 (-0400) Subject: Tests: Add health check thread exit test X-Git-Tag: v2.1.0-rc5~36 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=9e32c5c0340e16a4c08a87d8c953306abfdc2e64;hp=9e32c5c0340e16a4c08a87d8c953306abfdc2e64 Tests: Add health check thread exit test This test trigger a failure in a specified thread using the recently introduced testpoint mechanism. The testpoints behavior is implemented in health_exit.c. The testpoint code simply calls pthread_exit(3) and effectively "kill" the thread without affecting the other threads behavior. The test select the thread to be "killed" by enabling a specific environment variable. With this test we ensure that each thread can be succesfully terminated and that the health check feature properly detect a failure. Signed-off-by: Christian Babeux Signed-off-by: David Goulet ---