summaryrefslogtreecommitdiff
path: root/server/tests/resolv-tests.c
AgeCommit message (Collapse)AuthorFilesLines
2010-02-03Make resolve and failover test work with CK_FORK=noSumit Bose1-2/+2
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-22Handle IPv6 addresses with the async resolverStephen Gallagher1-5/+5
2010-01-14Explicitly set async DNS timeoutStephen Gallagher1-1/+1
We will allow 5s per DNS server, no retries.
2009-12-09Change ares usage to be c-ares 1.7.0 compatibleJakub Hrozek1-14/+12
* Rename structure accordingly to ares upstream * Use new ares parsing functions in the wrappers * fix tests for ares 1.7
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-09Check return, zero free hostent, adhere to styleSimo Sorce1-4/+6
2009-10-22Various improvements to the resolv test suiteMartin Nagy1-58/+222
* The resolv test case can now test for TXT and SRV resolving by specifying -t host and -s host respectively. The -n flag must still be passed in to enable network tests. * Added test for the little complicated resolv_copy_hostent() function. * Leak checking using the new tests common functions. * Fix indentation for test_internet, since the whole function was modified to be able to handle SRV and TXT replies. * Initialize the debug variable in main(). Also removed one unused variable in krb5_utils-tests.c
2009-08-05Consolidate tevent helpersJakub Hrozek1-9/+0
2009-07-24Add async resolver testsJakub Hrozek1-0/+442
Add some basic unit tests of the async resolver module. One of the tests resolves a name on the Internet, therefore it is off by default and is turned on with the -n switch.