From e010ac970692132adc8bdb2ca96b291fe94bae5c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 10 May 2005 11:19:12 +0000 Subject: allow the ares/config.h display to fail --- tests/testcurl.pl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests') 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 () { - print if /^ *#/; + if(open(F, "ares/config$confsuffix.h")) { + while () { + print if /^ *#/; + } + close(F); } - close(F); logit "build ares"; chdir "ares"; -- cgit v1.2.3