fix for coverage reporting for functions that use "when" statements

This commit is contained in:
Vern Paxson 2022-05-03 12:36:02 -07:00
parent fab4905fc2
commit 5d38971030

View file

@ -2072,7 +2072,7 @@ void WhenStmt::StmtDescribe(ODesc* d) const
wi->WhenBody()->Describe(d);
d->PopIndent();
if ( wi->TimeoutStmt() )
if ( wi->TimeoutExpr() )
{
if ( d->IsReadable() )
{
@ -2087,7 +2087,10 @@ void WhenStmt::StmtDescribe(ODesc* d) const
d->PopIndent();
}
else
{
wi->TimeoutExpr()->Describe(d);
wi->TimeoutStmt()->Describe(d);
}
}
}