diff options
| author | Michael Biebl <biebl@debian.org> | 2016-03-01 16:55:22 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2016-03-01 16:55:22 +0100 |
| commit | c2de0d98ba39e0a1a970d066fd19be786092f376 (patch) | |
| tree | 3838363c06a6019db6cf1f882ea34ebded63c38b /libnm-util/tests/test-settings-defaults.c | |
| parent | 494f296a3baab08522617b24b1f126d8f9a17502 (diff) | |
Imported Upstream version 1.1.91 upstream/1.1.91
Diffstat (limited to 'libnm-util/tests/test-settings-defaults.c')
| -rw-r--r-- | libnm-util/tests/test-settings-defaults.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/libnm-util/tests/test-settings-defaults.c b/libnm-util/tests/test-settings-defaults.c index 09f112cf..95ff0709 100644 --- a/libnm-util/tests/test-settings-defaults.c +++ b/libnm-util/tests/test-settings-defaults.c @@ -19,13 +19,11 @@ * */ -#include "config.h" +#include "nm-default.h" #include <string.h> -#include <nm-utils.h> - -#include "nm-default.h" +#include "nm-utils.h" #include "nm-setting-8021x.h" #include "nm-setting-cdma.h" #include "nm-setting-connection.h" @@ -53,9 +51,7 @@ test_defaults (GType type, const char *name) setting = g_object_new (type, NULL); property_specs = g_object_class_list_properties (G_OBJECT_GET_CLASS (setting), &n_property_specs); - ASSERT (property_specs != NULL, - name, "couldn't find property specs for object of type '%s'", - g_type_name (G_OBJECT_TYPE (setting))); + g_assert (property_specs); for (i = 0; i < n_property_specs; i++) { GParamSpec *prop_spec = property_specs[i]; @@ -87,9 +83,7 @@ test_defaults (GType type, const char *name) } else ok = g_param_value_defaults (prop_spec, &value); - ASSERT (ok, - name, "property '%s' value '%s' not the expected default value '%s'", - prop_spec->name, actual, expected); + g_assert (ok); g_free (actual); g_free (expected); |