]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Test case for resolver bug fixed by vg_libpthread.c rev 1.91. Thanks to
authorJulian Seward <jseward@acm.org>
Tue, 6 Aug 2002 09:09:53 +0000 (09:09 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 6 Aug 2002 09:09:53 +0000 (09:09 +0000)
Waldo Bastian for chasing this one into a corner.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@553

tests/Makefile.am
tests/resolv.c [new file with mode: 0644]

index 38396140c8f8c3e422eeaf6d404e42d631b0be9b..e25f85987aa578bab91170c5290118050e71f934 100644 (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
diff --git a/tests/resolv.c b/tests/resolv.c
new file mode 100644 (file)
index 0000000..37f5daa
--- /dev/null
@@ -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;
+}