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) {
|
if (value->children.size) {
|
||||||
int size = 0;
|
int size = 0;
|
||||||
TestVpiHandle iter_h = vpi_iterate(vpiMemoryWord, h);
|
TestVpiHandle iter_h = vpi_iterate(vpiMemoryWord, h);
|
||||||
TestVpiHandle word_h;
|
while (TestVpiHandle word_h = vpi_scan(iter_h)) {
|
||||||
while (word_h = vpi_scan(iter_h)) {
|
|
||||||
// check size and range
|
// check size and range
|
||||||
if (int status
|
if (int status
|
||||||
= _mon_check_props(word_h, value->children.size, value->children.direction,
|
= _mon_check_props(word_h, value->children.size, value->children.direction,
|
||||||
|
|
@ -189,7 +188,7 @@ int mon_check_props() {
|
||||||
return status;
|
return status;
|
||||||
size++;
|
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);
|
CHECK_RESULT(size, value->attributes.size);
|
||||||
}
|
}
|
||||||
value++;
|
value++;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue