aboutsummaryrefslogtreecommitdiff
path: root/tests/testcurl.pl
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2004-07-05 23:07:59 +0000
committerGunter Knauf <gk@gknw.de>2004-07-05 23:07:59 +0000
commitc59c429a69752715c778a168f4ca5a13af08250e (patch)
treeb82614fe2b4612723c7c2a0fb426b7ad86c98779 /tests/testcurl.pl
parent69f9d0c9167fe4b68bfe44bc4035fa56ccacb335 (diff)
added additional check to avoid calling a non-existant external script.
Diffstat (limited to 'tests/testcurl.pl')
-rwxr-xr-xtests/testcurl.pl7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/testcurl.pl b/tests/testcurl.pl
index 3ffaa53ba..24ea04fa9 100755
--- a/tests/testcurl.pl
+++ b/tests/testcurl.pl
@@ -432,9 +432,8 @@ if ($targetos ne '' && $targetos =~ /netware/) {
system('../../curlver');
}
} else {
-logit "display curl$binext --version output";
-
-system("./src/curl$binext --version");
+ logit "display curl$binext --version output";
+ system("./src/curl$binext --version");
}
if ($gnulikebuild) {
@@ -465,7 +464,7 @@ if ($gnulikebuild) {
}
# create a tarball if we got that option.
-if ($mktarball ne '') {
+if (($mktarball ne '') && (-f $mktarball)) {
system($mktarball);
}