Tests: Add health check thread exit test
authorChristian Babeux <christian.babeux@efficios.com>
Tue, 2 Oct 2012 18:05:32 +0000 (14:05 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 2 Oct 2012 20:12:20 +0000 (16:12 -0400)
commit9e32c5c0340e16a4c08a87d8c953306abfdc2e64
treecc6281716e14cbf17671f9b36cbfab0c9198716e
parentdff9583f7a4efbe881ef0b3a407db6568d539c1b
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 <christian.babeux@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
tests/tools/health/Makefile.am
tests/tools/health/health_exit.c [new file with mode: 0644]
tests/tools/health/health_thread_exit [new file with mode: 0755]
This page took 0.029992 seconds and 4 git commands to generate.