aboutsummaryrefslogtreecommitdiff
path: root/tests/testcurl.pl
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-04-29 01:31:37 +0000
committerYang Tse <yangsita@gmail.com>2009-04-29 01:31:37 +0000
commit5957498c6f98fdeb74a1d8d205aefa6ce225018a (patch)
treecd9eb1e1ab332e0fe6fc850cf38659b0727ee32c /tests/testcurl.pl
parentb6282b99cbfcd464348249a706650f39a929b2b5 (diff)
When running testcurl.pl display definitions from ares_build.h
Diffstat (limited to 'tests/testcurl.pl')
-rwxr-xr-xtests/testcurl.pl14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/testcurl.pl b/tests/testcurl.pl
index 7168a8429..133a8dfef 100755
--- a/tests/testcurl.pl
+++ b/tests/testcurl.pl
@@ -533,6 +533,20 @@ close(F);
if (grepfile("define USE_ARES", "lib/config$confsuffix.h")) {
logit "setup to build ares";
+ if(-f "./ares/ares_build.h") {
+ logit "display ares/ares_build.h";
+ if(open(F, "<./ares/ares_build.h")) {
+ while(<F>) {
+ my $ll = $_;
+ print $ll if(($ll =~ /^ *# *define/) && ($ll !~ /__CARES_BUILD_H/));
+ }
+ close(F);
+ }
+ }
+ else {
+ mydie "no ares_build.h created/found";
+ }
+
logit "display ares/config$confsuffix.h";
if(open(F, "ares/config$confsuffix.h")) {
while (<F>) {