awesome/spec/gears
Uli Schlachter 0fdecfb2df Add a test case capturing problems with weak_connect_signal (#520)
This adds a cyclic dependency between the function used for the weak signal and
an object with a __gc metamethod. The problem occurs since the GC will first
finalize the object (call its __gc metamethod) and only in the next generation
will it actually collect the garbage and remove the functions from weak-tables
using it as a key.

And yes this needs special code for Lua 5.1 because there __gc doesn't work on
tables. :-(

Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-12-10 23:19:52 +01:00
..
cache_spec.lua Add a generic cache system as gears.cache 2015-07-25 15:07:47 +02:00
color_spec.lua spec: fix "require" statements for busted 2.0.rc6 2015-02-19 12:13:53 +01:00
matrix_spec.lua gears.matrix: Implement matrices in Lua 2015-09-19 13:32:12 +02:00
object_spec.lua Add a test case capturing problems with weak_connect_signal (#520) 2015-12-10 23:19:52 +01:00
sort_spec.lua Add unit tests 2014-08-23 22:09:06 +02:00