Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | unit-tests: Add a thread local storage cleanup test | Martin Willi | 2013-11-06 | 1 | -0/+50 | |
| | ||||||
* | unit-tests: Add a thread local storage fuzzer test | Martin Willi | 2013-11-06 | 1 | -0/+64 | |
| | ||||||
* | unit-tests: Add a thread cleanup pop test | Martin Willi | 2013-11-06 | 1 | -0/+33 | |
| | ||||||
* | unit-tests: Add cleanup test cases for different thread exit situations | Martin Willi | 2013-11-06 | 1 | -0/+126 | |
| | ||||||
* | unit-tests: Add a test for thread_cancellation_point() | Martin Willi | 2013-11-06 | 1 | -0/+33 | |
| | ||||||
* | unit-tests: Add thread cancellability testing | Martin Willi | 2013-11-06 | 1 | -0/+50 | |
| | ||||||
* | unit-tests: Add a simple thread_cancel() test | Martin Willi | 2013-11-06 | 1 | -0/+35 | |
| | ||||||
* | unit-tests: Add thread_exit() tests to both join and detach test cases | Martin Willi | 2013-11-06 | 1 | -0/+62 | |
| | ||||||
* | unit-tests: Add a simple thread detach test | Martin Willi | 2013-11-06 | 1 | -0/+36 | |
| | ||||||
* | unit-tests: Add a simple thread join() test | Martin Willi | 2013-11-06 | 1 | -0/+27 | |
| | ||||||
* | unit-tests: Add test suite for streams and services | Martin Willi | 2013-11-06 | 4 | -0/+270 | |
| | ||||||
* | unit-tests: Add a few test cases for watcher | Martin Willi | 2013-11-06 | 4 | -0/+217 | |
| | ||||||
* | unit-tests: Support testing multi-threaded code | Martin Willi | 2013-11-06 | 2 | -7/+49 | |
| | ||||||
* | unit-tests: Use a home-brew thread barrier to remove pthread dependency | Martin Willi | 2013-11-06 | 1 | -15/+86 | |
| | ||||||
* | unit-tests: Show how many test vectors have failed on test failure | Martin Willi | 2013-11-06 | 1 | -1/+2 | |
| | ||||||
* | unit-tests: Skip fmemopen() based printf() tests if not available | Martin Willi | 2013-11-06 | 1 | -7/+12 | |
| | ||||||
* | unit-tests: Avoid name clash with clone() from <sched.h> | Martin Willi | 2013-11-06 | 1 | -6/+6 | |
| | ||||||
* | unit-tests: Fix a compiler warning in identification tests | Martin Willi | 2013-11-06 | 1 | -1/+1 | |
| | ||||||
* | unit-tests: Clean up memory in new asn1 unit tests | Martin Willi | 2013-11-06 | 1 | -1/+3 | |
| | | | | Test runner checks for leaks when leak detective is enabled. | |||||
* | unit-tests: Pass linked_list->invoke* varargs as uintptr_t | Martin Willi | 2013-11-06 | 1 | -6/+10 | |
| | | | | | | Passing integers of unspecified length may result in passing an integer shorter than uintptr_t. When reading them back, we might get more data than passed, resulting in a failure. | |||||
* | unit-tests: Initialize backtracing before printing any backtraces | Martin Willi | 2013-11-06 | 1 | -0/+4 | |
| | ||||||
* | thread: Note that tread_cancellation_point temporarily activates cancelability | Martin Willi | 2013-11-06 | 1 | -5/+4 | |
| | ||||||
* | backtrace: Support backtracing even if library is not initialized | Martin Willi | 2013-11-06 | 1 | -2/+2 | |
| | | | | But of course backtracing must be initialized anyway using backtrace_init(). | |||||
* | unit-tests: Enable libstrongswan tests even if --enable-unit-tests not set | Martin Willi | 2013-11-06 | 1 | -3/+1 | |
| | | | | | | As we don't depend on the check framework anymore, we can enable the unit tests by default. These are built/executed with "make check" only, so it makes no sense to disable them. | |||||
* | unit-tests: Implement testing framework without "check" | Martin Willi | 2013-11-06 | 5 | -113/+956 | |
| | ||||||
* | leak-detective: Call {gm,local}time_r() to allocate static buffer | Martin Willi | 2013-11-06 | 1 | -0/+5 | |
| | | | | | On OS X Mavericks, these functions use a static allocation and are hard to whitelist using other means. | |||||
* | leak-detective: Register OS X specific hooks just once | Martin Willi | 2013-11-06 | 1 | -0/+7 | |
| | | | | | If we initialize libstrongswan more than once in the same process, we may not register the hooks twice. | |||||
* | leak-detective: Reset leak list during cleanup | Martin Willi | 2013-11-06 | 1 | -0/+1 | |
| | | | | This resets leak detective state should it get created/destroyed more than once. | |||||
* | leak-detective: Use callback functions to report leaks and usage information | Martin Willi | 2013-11-06 | 4 | -45/+135 | |
| | | | | This is more flexible than printing reports to a FILE. | |||||
* | unit-tests: Move test suites to its own subfolder | Martin Willi | 2013-11-06 | 20 | -8/+22 | |
| | ||||||
* | unit-tests: completed asn1_suite | Andreas Steffen | 2013-11-04 | 1 | -33/+55 | |
| | ||||||
* | Updated test_runner.h with new suites | Andreas Steffen | 2013-11-03 | 1 | -0/+2 | |
| | ||||||
* | unit-tests: 100% function coverage for asn1.c | Andreas Steffen | 2013-11-03 | 2 | -6/+286 | |
| | ||||||
* | unit-tests: 12 asn1 functions tested | Andreas Steffen | 2013-11-02 | 3 | -1/+541 | |
| | ||||||
* | Some minor refactoring in asn1.c | Andreas Steffen | 2013-11-02 | 1 | -11/+17 | |
| | ||||||
* | Do not free zero-length integer | Andreas Steffen | 2013-11-02 | 1 | -5/+10 | |
| | ||||||
* | unit-tests: Added tests for pen_type_t | Andreas Steffen | 2013-11-01 | 3 | -1/+89 | |
| | ||||||
* | identification: Properly check length before comparing for binary DN equality | Martin Willi | 2013-10-31 | 1 | -1/+1 | |
| | | | | Fixes CVE-2013-6075. | |||||
* | unit-tests: Additionally do reverse match checking with empty identities | Martin Willi | 2013-10-31 | 1 | -0/+55 | |
| | ||||||
* | unit-tests: Test matching against some empty data identities | Martin Willi | 2013-10-31 | 1 | -0/+44 | |
| | ||||||
* | unit-tests: Test for equality against some empty data identities | Martin Willi | 2013-10-31 | 1 | -0/+43 | |
| | ||||||
* | unit-tests: Let identity equality test fail if a->equals(b) != b->equals(a) | Martin Willi | 2013-10-31 | 1 | -1/+1 | |
| | ||||||
* | utils: Include stdio.h for fmemopen() replacement | Tobias Brunner | 2013-10-29 | 1 | -0/+1 | |
| | | | | | This might now be required because Vstr is not necessarily required anymore, which means stdio.h might not be pulled in by prinf_hook.h. | |||||
* | Use exact mask when calling umask(2) | Tobias Brunner | 2013-10-29 | 1 | -1/+1 | |
| | | | | | | Due to the previous negation the high bits of the mask were set, which at least some versions of the Android build system prevent with a compile-time check. | |||||
* | Fixed some typos | Tobias Brunner | 2013-10-29 | 1 | -1/+1 | |
| | ||||||
* | utils: Fix check for fmemopen() fallback implementation | Martin Willi | 2013-10-24 | 2 | -2/+3 | |
| | ||||||
* | unit-tests: Set sa_len in sockaddr template data, if required | Martin Willi | 2013-10-24 | 1 | -0/+6 | |
| | ||||||
* | printf-hook-builtin: Don't rely on isinf() return value signedness | Martin Willi | 2013-10-24 | 1 | -8/+9 | |
| | | | | | Many systems don't return a negative value for negative infinities; so do a separate check. | |||||
* | watcher: Rebuild fdset when select() fails | Martin Willi | 2013-10-24 | 1 | -1/+12 | |
| | | | | | | This should make sure we refresh the fdset if a user closes an FD it just removed. Some selects() seem to complain about the bad FD before signaling the notification pipe. | |||||
* | rwlock: Disable thread cancelability while waiting in (fallback) rwlock | Martin Willi | 2013-10-24 | 1 | -0/+7 | |
| | | | | | | An rwlock wait is not a thread cancellation point. As a canceled thread would not have released the mutex, the rwlock would have been left in unusable state. |