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
This commit is contained in:
Julian Seward 2002-08-06 09:09:53 +00:00
parent fbaff8e524
commit c2818e1b69
2 changed files with 14 additions and 1 deletions

View File

@ -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

13
tests/resolv.c Normal file
View File

@ -0,0 +1,13 @@
#include <resolv.h>
#include <stdio.h>
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;
}