This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH COMMITTED] tst-res_hconf_reorder: Set RESOLV_REORDER environment variable
- From: Florian Weimer <fweimer at redhat dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 4 Dec 2015 19:05:18 +0100
- Subject: [PATCH COMMITTED] tst-res_hconf_reorder: Set RESOLV_REORDER environment variable
- Authentication-results: sourceware.org; auth=none
Otherwise, the problematic code does not run.
Another option would have been to make this an xtest, with instructions
how system configuration needs to be changed, but I think this is better
because xtests are run less frequently.
Florian
2015-12-04 Florian Weimer <fweimer@redhat.com>
* resolv/tst-res_hconf_reorder.c (do_test): Set RESOLV_REORDER
environment variable.
diff --git a/resolv/tst-res_hconf_reorder.c b/resolv/tst-res_hconf_reorder.c
index 1e7e0e2..7b2c66c 100644
--- a/resolv/tst-res_hconf_reorder.c
+++ b/resolv/tst-res_hconf_reorder.c
@@ -71,6 +71,9 @@ do_test (void)
unsigned int i;
int result = 0;
+ /* Enabled code to be tested. */
+ setenv ("RESOLV_REORDER", "on", 1);
+
/* turn on realloc slowdown */
ts.tv_nsec = 100000000;