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