mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-29 09:20:45 +02:00
Test stability for Windows/32bit
This commit is contained in:
Vendored
+8
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user