This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH COMMITTED] tst-res_hconf_reorder: Set RESOLV_REORDER environment variable


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;
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]