diff options
author | Thomas Haller <thaller@redhat.com> | 2019-04-11 10:31:30 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-04-12 11:10:07 +0200 |
commit | 0d3bf9729ab39f51d3191bbeed96bd6ad6a004c6 (patch) | |
tree | 04f6c4ae9d2c150b3e82a713ba2b6e58b625f305 /libnm/nm-device-macvlan.c | |
parent | 03b6be83196d4a5982b6d394beaf4c5fe786d34e (diff) | |
download | NetworkManager-0d3bf9729ab39f51d3191bbeed96bd6ad6a004c6.tar.gz |
dispatcher/tests: cleanup tests
- use cleanup macros everywhere.
- In particular use nm_auto_clear_variant_builder to free the
GVariantBuilder in the error cases. Note that the error cases
anyway are asserted against, so during a normal test run there
was no leak. But we should not write software like that.
- use nm_utils_strsplit_set_with_empty() instead of g_strsplit_set().
We should use our variant also in unit-tests, because that way the
function gets more test coverage. And it likely performs better
anyway.
Diffstat (limited to 'libnm/nm-device-macvlan.c')
0 files changed, 0 insertions, 0 deletions