Skip to content

Commit 8b010d6

Browse files
author
Matthias Koefferlein
committed
Trying to fix unit tests
1 parent 3a06942 commit 8b010d6

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

testdata/ruby/dbLibrary.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ def test_3_layout
121121

122122
def test_4_library_registration_and_rename
123123

124+
# clean up before
125+
[ "RBA-unit-test", "RBA-unit-test2" ].each do |name|
126+
l = RBA::Library::library_by_name(name)
127+
l && l.unregister
128+
end
129+
124130
lib = RBA::Library::new
125131
lib.description = "LIB1"
126132
lib.delete
@@ -159,6 +165,12 @@ def test_4_library_registration_and_rename
159165

160166
def test_5_reload
161167

168+
# clean up before
169+
[ "RBA-unit-test", "RBA-unit-test2" ].each do |name|
170+
l = RBA::Library::library_by_name(name)
171+
l && l.unregister
172+
end
173+
162174
lib = MyLibImpl::new
163175
lib.description = "LIB1"
164176
lib.register("RBA-unit-test")
@@ -178,6 +190,12 @@ def test_5_reload
178190

179191
def test_6_cells_become_defunct_after_unregister
180192

193+
# clean up before
194+
[ "RBA-unit-test", "RBA-unit-test2" ].each do |name|
195+
l = RBA::Library::library_by_name(name)
196+
l && l.unregister
197+
end
198+
181199
lib = RBA::Library::new
182200
lib.description = "LIB1"
183201
lib.register("RBA-unit-test")
@@ -209,6 +227,12 @@ def test_6_cells_become_defunct_after_unregister
209227

210228
def test_7_change_ref
211229

230+
# clean up before
231+
[ "RBA-unit-test", "RBA-unit-test2" ].each do |name|
232+
l = RBA::Library::library_by_name(name)
233+
l && l.unregister
234+
end
235+
212236
lib = RBA::Library::new
213237
lib.description = "LIB1"
214238
lib.register("RBA-unit-test")

0 commit comments

Comments
 (0)