mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
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:
parent
fbaff8e524
commit
c2818e1b69
@ -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
13
tests/resolv.c
Normal 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;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user