From c2818e1b6930f21ffec78d247dd3b1ebeaaa787c Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Tue, 6 Aug 2002 09:09:53 +0000 Subject: [PATCH] Test case for resolver bug fixed by vg_libpthread.c rev 1.91. Thanks to Waldo Bastian for chasing this one into a corner. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@553 --- tests/Makefile.am | 2 +- tests/resolv.c | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 tests/resolv.c diff --git a/tests/Makefile.am b/tests/Makefile.am index 38396140c..e25f85987 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -31,4 +31,4 @@ EXTRA_DIST = \ discard.c pth_semaphore1.c new_override.cpp pth_yield.c \ sigaltstack.c erringfds.c sigwait_all.c \ pth_cancel1.c pth_cancel2.c pth_signal_gober.c nanoleak.c \ - pth_pause.c pth_sigpending.c pth_atfork1.c + pth_pause.c pth_sigpending.c pth_atfork1.c resolv.c diff --git a/tests/resolv.c b/tests/resolv.c new file mode 100644 index 000000000..37f5daaf9 --- /dev/null +++ b/tests/resolv.c @@ -0,0 +1,13 @@ + +#include +#include + +int main(int argc, char *argv[]) +{ + printf("PRE _res.nscount = %d\n", _res.nscount); + fflush(stdout); + res_init(); + printf("POST _res.nscount = %d\n", _res.nscount); + fflush(stdout); + return 0; +}