mirror of
https://github.com/verilator/verilator.git
synced 2025-01-05 22:27:35 +00:00
Tests: Make explicit some IEEE-mandated freeing of VPI handles
This commit is contained in:
parent
9bb353c577
commit
deb5531e54
@ -180,8 +180,7 @@ int mon_check_props() {
|
||||
if (value->children.size) {
|
||||
int size = 0;
|
||||
TestVpiHandle iter_h = vpi_iterate(vpiMemoryWord, h);
|
||||
TestVpiHandle word_h;
|
||||
while (word_h = vpi_scan(iter_h)) {
|
||||
while (TestVpiHandle word_h = vpi_scan(iter_h)) {
|
||||
// check size and range
|
||||
if (int status
|
||||
= _mon_check_props(word_h, value->children.size, value->children.direction,
|
||||
@ -189,7 +188,7 @@ int mon_check_props() {
|
||||
return status;
|
||||
size++;
|
||||
}
|
||||
word_h.freed(); // IEEE 37.2.2 vpi_scan at end does a vpi_release_handle
|
||||
iter_h.freed(); // IEEE 37.2.2 vpi_scan at end does a vpi_release_handle
|
||||
CHECK_RESULT(size, value->attributes.size);
|
||||
}
|
||||
value++;
|
||||
|
Loading…
Reference in New Issue
Block a user