1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

made stdin testing work, also made 'nocheck=true' work when set on the

reply data section
This commit is contained in:
Daniel Stenberg 2001-06-14 12:16:07 +00:00
parent fe67ba6d2b
commit e18ecaf108

View File

@ -470,7 +470,7 @@ sub singletest {
# run curl, add -v for debug information output # run curl, add -v for debug information output
my $cmdargs="$out--include -v $cmd"; my $cmdargs="$out--include -v $cmd";
my @stdintest = getpart("verify", "stdin"); my @stdintest = getpart("client", "stdin");
if(@stdintest) { if(@stdintest) {
my $stdinfile="$LOGDIR/stdin-for-$testnum"; my $stdinfile="$LOGDIR/stdin-for-$testnum";
@ -533,7 +533,9 @@ sub singletest {
} }
} }
if(@reply) { my %replyattr = getpartattr("reply", "data");
if(!$replyattr{'nocheck'} &&
@reply) {
# verify the received data # verify the received data
my @out = loadarray($CURLOUT); my @out = loadarray($CURLOUT);
$res = compare(\@out, \@reply); $res = compare(\@out, \@reply);