glib/gobject/tests
Dan Winship 0d62eb467f gobject: forbid finalization-during-construction
If a constructor() implementation created an object but then unreffed
it rather than returning it, that object would get left on the
construction_objects list, which would cause problems later when that
memory location got reused by another object.

"Fix" this by making it fail intentionally, and add a test for it (and
for the normal, working singleton case).

https://bugzilla.gnome.org/show_bug.cgi?id=661576
2013-10-22 11:01:15 -04:00
..
.gitignore gobject: forbid finalization-during-construction 2013-10-22 11:01:15 -04:00
binding.c Fix overloading of "source" and "target" terminology in GBinding 2013-10-06 14:24:43 -04:00
boxed.c Improve test coverage in gobject/ 2013-05-29 08:37:08 -04:00
closure.c tests/closure: Send SIGUSR1 only to our pid 2013-07-22 15:14:34 +01:00
dynamictests.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
enums.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
ifaceproperties.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
Makefile.am gobject: forbid finalization-during-construction 2013-10-22 11:01:15 -04:00
marshalers.list Add more tests for signal emissions 2012-03-02 17:13:04 +01:00
object.c gobject: forbid finalization-during-construction 2013-10-22 11:01:15 -04:00
param.c tests: port from g_test_trap_subprocess() to g_test_trap_fork() 2013-05-13 12:10:52 -04:00
private.c Rename the generated private data getter function 2013-06-24 15:43:04 +01:00
properties.c gobject: Handle ref_count==0 in notify_by_pspec 2013-08-14 18:11:05 +01:00
qdata.c Improve test coverage in gobject/ 2013-05-29 08:37:08 -04:00
reference.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
signals.c Improve signal test coverage 2013-05-29 08:37:19 -04:00
testcommon.h Move ifaceproperties test to gobject/tests/ 2010-12-27 23:49:12 -05:00
threadtests.c gtype: disallow adding interfaces after the fact 2013-01-04 21:20:04 +01:00
type.c Improve test coverage in gobject/ 2013-05-29 08:37:08 -04:00
valuearray.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00