allow the ares/config.h display to fail
diff --git a/tests/testcurl.pl b/tests/testcurl.pl
index 67b1891..9e0ed91 100755
--- a/tests/testcurl.pl
+++ b/tests/testcurl.pl
@@ -439,11 +439,12 @@
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";