summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2015-12-04 19:02:04 +0100
committerFlorian Weimer <fweimer@redhat.com>2015-12-04 19:02:12 +0100
commit731a713b72e1281d58b3304738f04efb7bfca8b7 (patch)
treeef3fbf86d25bce66bf018c5f8c439d70856df05a
parent2cc4b9cce51643ec299e97450ccde4deeecfb083 (diff)
downloadglibc-731a713b72e1281d58b3304738f04efb7bfca8b7.tar.gz
glibc-731a713b72e1281d58b3304738f04efb7bfca8b7.tar.xz
glibc-731a713b72e1281d58b3304738f04efb7bfca8b7.zip
tst-res_hconf_reorder: Set RESOLV_REORDER environment variable
Otherwise, the problematic code does not run.
-rw-r--r--ChangeLog5
-rw-r--r--resolv/tst-res_hconf_reorder.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 266df03ef4..cdac9ea1f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-12-04  Florian Weimer  <fweimer@redhat.com>
+
+	* resolv/tst-res_hconf_reorder.c (do_test): Set RESOLV_REORDER
+	environment variable.
+
 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
 
 	Consistency about byte vs character in string.texi
diff --git a/resolv/tst-res_hconf_reorder.c b/resolv/tst-res_hconf_reorder.c
index 1e7e0e2fa5..7b2c66c696 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;