1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

return, not exit, on several places

This commit is contained in:
Daniel Stenberg 2005-05-16 07:07:00 +00:00
parent 4eaa3329ec
commit 1a31bff9fe

View File

@ -525,7 +525,7 @@ sub runhttpserver {
# it is NOT alive # it is NOT alive
print "RUN: failed to start the HTTP server!\n"; print "RUN: failed to start the HTTP server!\n";
stopservers($verbose); stopservers($verbose);
exit; return (0,0);
} }
# Server is up. Verify that we can speak to it. # Server is up. Verify that we can speak to it.
@ -579,7 +579,7 @@ sub runhttpsserver {
# it is NOT alive # it is NOT alive
print "RUN: failed to start the HTTPS server!\n"; print "RUN: failed to start the HTTPS server!\n";
stopservers($verbose); stopservers($verbose);
exit; return(0,0);
} }
# Server is up. Verify that we can speak to it. # Server is up. Verify that we can speak to it.
@ -1183,7 +1183,7 @@ sub singletest {
if(!$filename) { if(!$filename) {
print "ERROR: section client=>file has no name attribute!\n"; print "ERROR: section client=>file has no name attribute!\n";
exit; return -1;
} }
my $fileContent = join('', @inputfile); my $fileContent = join('', @inputfile);
subVariables \$fileContent; subVariables \$fileContent;
@ -1259,7 +1259,7 @@ sub singletest {
print "perl: $code\n"; print "perl: $code\n";
print "precommand: $@"; print "precommand: $@";
stopservers($verbose); stopservers($verbose);
exit; return -1;
} }
} }
@ -1432,7 +1432,7 @@ sub singletest {
if(!$filename) { if(!$filename) {
print "ERROR: section verify=>file has no name attribute!\n"; print "ERROR: section verify=>file has no name attribute!\n";
stopservers($verbose); stopservers($verbose);
exit; return -1;
} }
my $filemode=$hash{'mode'}; my $filemode=$hash{'mode'};