tests: Add generating resolv.conf to torture
authorJakub Hrozek <jhrozek@redhat.com>
Sat, 13 Sep 2014 15:09:30 +0000 (17:09 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 21 Oct 2014 11:39:39 +0000 (13:39 +0200)
commitfb891a5237232b0058ff7e8a2cf14a4ccd1cf108
treedbbf2c5a5aea66f443db987405efa4de8a3e4fcc
parent35f5507917d367d20606c87e74a82b4cd5691e91
tests: Add generating resolv.conf to torture

Adds a setup/teardown functions that allow a unit test to easily
generate a resolv.conf pointing to our test DNS server.

Signed-off-by: Jakub Hrozek <jakub.hrozek@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
tests/torture.c
tests/torture.h