aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/tests/test_suite.c
Commit message (Collapse)AuthorAgeFilesLines
* windows: Use WINAPI call convention for Windows API callbacksMartin Willi2014-06-061-2/+2
| | | | | For x86_64 it does not actually matter, but for i686 builds the call convention is different with WINAPI.
* unit-tests: Add support for Windows buildMartin Willi2014-06-041-26/+189
| | | | | Instead of signals we catch Windows exceptions. Currently not supported are timers, which is more a convenience thing anyway.
* unit-tests: Defer failures by worker threadsTobias Brunner2014-05-191-2/+21
| | | | | | | | | | | In some cases the main thread is not ready to immediately call siglongjmp(), e.g. if it currently holds a mutex that is later required during shutdown. Therefore, we delay handling errors in worker threads until the main thread performs the next check itself (or the test function ends). The same issue remains with SIGALRM.
* unit-tests: Prevent a failing worker thread to go wild after it failsMartin Willi2014-04-011-1/+2
| | | | | | 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.
* Fixed some typosTobias Brunner2014-02-181-2/+2
|
* unit-tests: Support testing multi-threaded codeMartin Willi2013-11-061-5/+42
|
* unit-tests: Implement testing framework without "check"Martin Willi2013-11-061-0/+240