summaryrefslogtreecommitdiffstats
path: root/server/tests/fail_over-tests.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename server/ directory to src/Stephen Gallagher2010-02-181-304/+0
| | | | Also update BUILD.txt
* Make resolve and failover test work with CK_FORK=noSumit Bose2010-02-031-1/+1
| | | | | | | | | | | | | | | The leak checking code which is used by the resolve and failover tests frees talloc's autofree context which is not recommended. As a consequence the initialization of tevent failed when it was called by the second test and CF_FORK=no, because it holds some data in the autofree context. This patch introduces a global talloc context which should be uses by the test as the root of their memory hierarchy instead of NULL. This global context is used in the leak checking routines. Not all types of memory leaks can be detected by the new version , it is recommended to use valgrind or similar tools additionally.
* Explicitly set async DNS timeoutStephen Gallagher2010-01-141-1/+1
| | | | We will allow 5s per DNS server, no retries.
* Only display errors in unit testsStephen Gallagher2009-11-201-1/+2
| | | | | If you want to turn verbosity back on, just set the environment variable CK_VERBOSITY=verbose
* Add fail over utility functionsMartin Nagy2009-11-061-0/+303
These functions should be used by providers to centrally manage lists of servers. Servers are grouped into services and each service has it's own list of servers. If, however, you will try to add a same server into two different services, they will share a common structure. This means that a host will only be resolved once.