Skip to content

Commit cba37d5

Browse files
committed
odb: Add test for fixed region destroy hang
Signed-off-by: Martin Povišer <[email protected]>
1 parent 9177d22 commit cba37d5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/odb/test/test_group.tcl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,21 @@ proc test_destroy { } {
7979
tearDown $db
8080
}
8181

82+
proc test_region_w_groups_destroy { } {
83+
lassign [createSimpleDB] db lib
84+
set block [create1LevelBlock $db $lib [$db getChip]]
85+
86+
# create region
87+
set foo_region [odb::dbRegion_create $block foo_region]
88+
# and a group
89+
set foo_group [odb::dbGroup_create $foo_region foo_group]
90+
# destroy region while it has group
91+
odb::dbRegion_destroy $foo_region
92+
tearDown $db
93+
}
94+
8295
test_default
8396
test_destroy
97+
test_region_w_groups_destroy
8498
puts "pass"
8599
exit 0

0 commit comments

Comments
 (0)