diff options
author | Gunter Knauf <gk@gknw.de> | 2009-05-21 13:23:49 +0000 |
---|---|---|
committer | Gunter Knauf <gk@gknw.de> | 2009-05-21 13:23:49 +0000 |
commit | e37b1b06235fa4dc1846363114bac3102b280dd8 (patch) | |
tree | 5e569fe7a0fd650eacf059eb8d0fa8c48ad77b2e /tests/testcurl.pl | |
parent | 4a79462c3ed6e55f9203485431d56be5c45315b6 (diff) | |
download | curl-e37b1b06235fa4dc1846363114bac3102b280dd8.tar.gz |
reduced duplicate code.
Diffstat (limited to 'tests/testcurl.pl')
-rwxr-xr-x | tests/testcurl.pl | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/tests/testcurl.pl b/tests/testcurl.pl index cf362fb87..5304420cf 100755 --- a/tests/testcurl.pl +++ b/tests/testcurl.pl @@ -624,11 +624,6 @@ if (grepfile("define USE_ARES", "lib/config$confsuffix.h")) { if ($configurebuild) { logit "$make -i"; open(F, "$make -i 2>&1 |") or die; - while (<F>) { - s/$pwd//g; - print; - } - close(F); } else { logit "$make -i $targetos"; @@ -643,12 +638,12 @@ else { else { open(F, "$make -i $targetos 2>&1 |") or die; } - while (<F>) { - s/$pwd//g; - print; - } - close(F); } +while (<F>) { + s/$pwd//g; + print; +} +close(F); if (-f "lib/libcurl$libext") { logit "libcurl was created fine (libcurl$libext)"; |