From 15aeb94f3ff9012728aff1d21b63729af7433dd1 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 28 Dec 2010 16:52:20 +0100 Subject: test harness: take in account that Windows does not support LD_PRELOAD configure.ac: Test harness libhostname library will not be built for Windows. runtests.pl: LD_PRELOAD mechanism will not be used to load libhostname library on operating systems which lack LD_PRELOAD support. --- tests/runtests.pl | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/runtests.pl b/tests/runtests.pl index 2ec18bf78..75f441bde 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -2417,10 +2417,15 @@ sub singletest { delete $ENV{$var} if($ENV{$var}); } else { - if(($var =~ /^LD_PRELOAD/) && - ($debug_build || ($has_shared ne "yes"))) { - # print "Skipping LD_PRELOAD due to no release shared build\n"; - next; + if($var =~ /^LD_PRELOAD/) { + if(exe_ext() && (exe_ext() eq '.exe')) { + # print "Skipping LD_PRELOAD due to lack of OS support\n"; + next; + } + if($debug_build || ($has_shared ne "yes")) { + # print "Skipping LD_PRELOAD due to no release shared build\n"; + next; + } } $ENV{$var} = "$content"; } -- cgit v1.2.3