Test stability for Windows/32bit

This commit is contained in:
Matthias Koefferlein
2021-02-28 13:50:33 +01:00
parent 77356cd877
commit b353f7db79
2 changed files with 22 additions and 12 deletions
+8 -1
View File
@@ -27,6 +27,7 @@ class Basic_TestClass < TestBase
a = nil
GC.start
GC.start
assert_equal( RBA::A::instance_count, ic0 )
a = RBA::A.new
@@ -2737,13 +2738,16 @@ class Basic_TestClass < TestBase
GC.start
nx = RBA::X::instances
z = RBA::Z::new
nx = RBA::X::instances
x = RBA::X::new("1")
z.set_x(x)
assert_equal(RBA::X::instances, nx + 1)
# weird. On WIN/32bit, this makes the test pass (enables GC somehow?):
puts("ANYTHING")
x = nil
z.set_x(nil)
GC.start
@@ -2759,6 +2763,9 @@ class Basic_TestClass < TestBase
assert_equal(RBA::X::instances, nx + 1)
# weird. On WIN/32bit, this makes the test pass (enables GC somehow?):
puts("ANYTHING")
# this will release the object - hence it's going to be deleted
z.set_x_keep(nil)
GC.start