summaryrefslogtreecommitdiff
path: root/json-glib/tests/serialize-complex.c
Commit message (Collapse)AuthorAgeFilesLines
* Drop usage of raw g_assert in reader test in favor of g_assert_*()Frederic Martinsons2022-10-111-4/+4
| | | | | | | | This will give more informative message in case of fail assertions. Moreover GLib (when compiling with G_DISABLE_ASSERT) disable g_assert totally, that would make these tests no-op Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
* tests: Fix some memory leaks in the testsPhilip Withnall2017-12-151-1/+2
| | | | | | | | | We can’t do this by porting to g_autoptr(), because json-glib needs to be buildable using MSVC. Sad panda. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://gitlab.gnome.org/GNOME/json-glib/issues/30
* Remove compile time GLib version checkEmmanuele Bassi2013-08-211-3/+0
| | | | | We depend on a new version of GLib, so we can remove a bunch of old version checks.
* tests: Put g_type_init() under conditional compilationEmmanuele Bassi2012-10-271-0/+2
| | | | | | | | Starting from GLib 2.36, g_type_init() is going to be deprecated (the type system will be initialized as soon as libgobject is paged in, using constructors). As I don't want to bump dependencies just for that, the call to g_type_init() should be placed under a compile-time version check, to keep the noise from compiler warnings down.
* gobject: Deserialize CONSTRUCT propertiesEmmanuele Bassi2011-08-231-1/+18
| | | | | | | | | | | | While we have to give up deserializing CONSTRUCT_ONLY properties with JsonSerializable, CONSTRUCT properties should just be deserialized like any other property. Sadly, there's still a refuse in the json_gobject_new() code that skips CONSTRUCT properties along with CONSTRUCT_ONLY ones — a remnant of a period when we deserialized them both without JsonSerializable. https://bugzilla.gnome.org/show_bug.cgi?id=655526
* tests/serialize-complex: Modify the instanceEmmanuele Bassi2011-06-011-11/+11
| | | | | Do not test the defaults: create the GObject instance with different values than the default ones from the GParamSpec.
* tests: Move all tests under json-glibEmmanuele Bassi2011-05-281-0/+293
The test framework should live under the json-glib directory, and not be spread across the project.