unit-tests: Prevent a failing worker thread to go wild after it fails
authorMartin Willi <martin@revosec.ch>
Mon, 24 Mar 2014 16:17:50 +0000 (17:17 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 1 Apr 2014 12:28:54 +0000 (14:28 +0200)
commit4e8ff4f010f95ca5d6e36e5e0659d4a7d0f61d35
tree2783028146b0e4319e2a7b279b22518ce6633e2d
parent96e3142c39a69cfc99fc808f2df3f9d409b05357
unit-tests: Prevent a failing worker thread to go wild after it fails

A worker raises SIGUSR1 to inform the main thread that the test fails. The main
thread then starts cancelling workers, but the offending thread should be
terminated immediately to prevent it from test continuation.
src/libstrongswan/tests/test_suite.c