summaryrefslogtreecommitdiff
path: root/src/libstrongswan/tests/test_suite.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/tests/test_suite.c')
-rw-r--r--src/libstrongswan/tests/test_suite.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstrongswan/tests/test_suite.c b/src/libstrongswan/tests/test_suite.c
index 0f2e74b7c..fb40b05c1 100644
--- a/src/libstrongswan/tests/test_suite.c
+++ b/src/libstrongswan/tests/test_suite.c
@@ -136,7 +136,8 @@ static inline void test_failure()
else
{
pthread_kill(main_thread, SIGUSR1);
- /* how can we stop just the thread? longjmp to a restore point? */
+ /* terminate thread to prevent it from going wild */
+ pthread_exit(NULL);
}
}