summaryrefslogtreecommitdiff
path: root/server/tests/fail_over-tests.c
AgeCommit message (Collapse)AuthorFilesLines
2010-02-03Make resolve and failover test work with CK_FORK=noSumit Bose1-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.
2010-01-14Explicitly set async DNS timeoutStephen Gallagher1-1/+1
We will allow 5s per DNS server, no retries.
2009-11-20Only display errors in unit testsStephen Gallagher1-1/+2
If you want to turn verbosity back on, just set the environment variable CK_VERBOSITY=verbose
2009-11-06Add fail over utility functionsMartin Nagy1-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.