]> granicus.if.org Git - curl/commitdiff
allow the ares/config.h display to fail
authorDaniel Stenberg <daniel@haxx.se>
Tue, 10 May 2005 11:19:12 +0000 (11:19 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 10 May 2005 11:19:12 +0000 (11:19 +0000)
tests/testcurl.pl

index 67b189147ef5aa7217d0bda87e8ffa6cc54af79b..9e0ed9136a2bfcab19e43dc355075aca7502a612 100755 (executable)
@@ -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";