aboutsummaryrefslogtreecommitdiff
path: root/tests/testcurl.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-05-10 11:19:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-05-10 11:19:12 +0000
commite010ac970692132adc8bdb2ca96b291fe94bae5c (patch)
treef627a833d8bd975035abab5b327b4acce17238c0 /tests/testcurl.pl
parente4c0a85da03b1b9070fc93e06ec989d1dce33fed (diff)
allow the ares/config.h display to fail
Diffstat (limited to 'tests/testcurl.pl')
-rwxr-xr-xtests/testcurl.pl9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/testcurl.pl b/tests/testcurl.pl
index 67b189147..9e0ed9136 100755
--- a/tests/testcurl.pl
+++ b/tests/testcurl.pl
@@ -439,11 +439,12 @@ if (grepfile("define USE_ARES", "lib/config$confsuffix.h")) {
logit "setup to build ares";
logit "display ares/config$confsuffix.h";
- open(F, "ares/config$confsuffix.h") or die "ares/config$confsuffix.h: $!";
- while (<F>) {
- print if /^ *#/;
+ if(open(F, "ares/config$confsuffix.h")) {
+ while (<F>) {
+ print if /^ *#/;
+ }
+ close(F);
}
- close(F);
logit "build ares";
chdir "ares";