mirror of
https://github.com/curl/curl.git
synced 2026-08-26 00:13:34 +03:00
Fixed the test harness so it will write out zero-length data files.
This commit is contained in:
parent
6c2c281a7e
commit
80cec5a62a
2 changed files with 5 additions and 7 deletions
|
|
@ -1957,13 +1957,11 @@ sub singletest {
|
|||
unlink($memdump);
|
||||
}
|
||||
|
||||
# create a (possibly-empty) file before starting the test
|
||||
my @inputfile=getpart("client", "file");
|
||||
if(@inputfile) {
|
||||
# we need to generate a file before this test is invoked
|
||||
my %fileattr = getpartattr("client", "file");
|
||||
|
||||
my $filename=$fileattr{'name'};
|
||||
|
||||
my %fileattr = getpartattr("client", "file");
|
||||
my $filename=$fileattr{'name'};
|
||||
if(@inputfile || $filename) {
|
||||
if(!$filename) {
|
||||
logmsg "ERROR: section client=>file has no name attribute\n";
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue