NetworkManager/libnm-core/tests
Thomas Haller 6325c596c0 libnm: handle all-default settings in nm_setting_to_hash() properly
Before, _nm_setting_to_dbus() would return NULL instead of an empty
hash. This would be the case, if all properties are default.

When exporting connections via DBUS, we eventually call
_nm_setting_to_dbus() to convert the connection into a hash of hashes.
By _nm_setting_to_hash() converting empty hashes to NULL, the setting
is missing. Not returning empty hashes means that to_dbus() and
new_from_dbus() don't make a valid round-trip conversion.

Fix that by always returning a hash from _nm_setting_to_dbus()

https://bugzilla.gnome.org/show_bug.cgi?id=735255

See-also: 4d32618264
Signed-off-by: Thomas Haller <thaller@redhat.com>
2014-09-05 09:35:56 -04:00
..
Makefile.am libnm-core: fix up the new property-comparison test program 2014-09-04 09:20:09 -04:00
test-compare.c libnm-core: drop NMParamSpecSpecialized, add nm_property_compare() 2014-09-04 09:20:10 -04:00
test-crypto.c libnm-core: replace GByteArray with pointer + length in some APIs 2014-09-04 09:20:11 -04:00
test-general.c libnm-core: change DBUS_TYPE_G_UCHAR_ARRAY properties to G_TYPE_BYTES 2014-09-04 09:20:11 -04:00
test-secrets.c libnm: handle all-default settings in nm_setting_to_hash() properly 2014-09-05 09:35:56 -04:00
test-setting-8021x.c libnm-core: change DBUS_TYPE_G_UCHAR_ARRAY properties to G_TYPE_BYTES 2014-09-04 09:20:11 -04:00
test-setting-dcb.c libnm: add libnm/libnm-core (part 2) 2014-08-01 14:34:04 -04:00
test-settings-defaults.c libnm: add libnm/libnm-core (part 2) 2014-08-01 14:34:04 -04:00