From patchwork Fri Dec 4 18:05:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 9891 Received: (qmail 124976 invoked by alias); 4 Dec 2015 18:05:23 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 124963 invoked by uid 89); 4 Dec 2015 18:05:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com To: GNU C Library From: Florian Weimer Subject: [PATCH COMMITTED] tst-res_hconf_reorder: Set RESOLV_REORDER environment variable Message-ID: <5661D5DE.7050704@redhat.com> Date: Fri, 4 Dec 2015 19:05:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 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 * 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;