equal
deleted
inserted
replaced
|
1 The various curl NTLM tests try to LD_PRELOAD a test library |
|
2 called .../tests/libtest/.libs/libhostname.so that's been |
|
3 created as a pre-requisite to running the numerous Perl tests. |
|
4 |
|
5 This patch adjusts LD_PRELOAD to be LD_PRELOAD_32 or LD_PRELOAD_64 |
|
6 depending upong whether we are running the 32 or 64 bit tests. |
|
7 |
|
8 As this is Solaris specific, this patch will not be pushed upstream. |
|
9 |
|
10 --- tests/runtests.pl.orig 2013-10-09 04:16:23.150958416 -0700 |
|
11 +++ tests/runtests.pl 2013-10-09 04:17:42.710320616 -0700 |
|
12 @@ -2830,6 +2830,12 @@ |
|
13 # print "Skipping LD_PRELOAD due to no release shared build\n"; |
|
14 next; |
|
15 } |
|
16 + # make this LD_PRELOAD_{bits} |
|
17 + open(FP, "/bin/file $content |"); |
|
18 + my $bits = <FP>; |
|
19 + if ($bits =~ /^.+ELF\s(\d\d)-bit.+$/) { |
|
20 + $var .= '_'.$1; |
|
21 + } |
|
22 } |
|
23 $ENV{$var} = "$content"; |
|
24 } |