Commit 26620f49 authored by Simon McVittie's avatar Simon McVittie
Browse files

test: Use g_assert_true, g_assert_false for comparisons with TRUE, FALSE



Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
parent 97590d60
......@@ -3341,11 +3341,11 @@ _dbus_gobject_test (const char *test_data_dir)
g_assert_cmpint (*arg, !=, '\0');
arg = arg_iterate (arg, &arg_name, &arg_in, &constval, &retval, &arg_signature);
g_assert_cmpstr (arg_name, ==, "x");
g_assert (arg_in == TRUE);
g_assert_true (arg_in);
g_assert_cmpstr (arg_signature, ==, "u");
g_assert_cmpint (*arg, !=, '\0');
arg = arg_iterate (arg, &arg_name, &arg_in, &constval, &retval, &arg_signature);
g_assert (arg_in == FALSE);
g_assert_false (arg_in);
g_assert_cmpint (retval, ==, RETVAL_NONE);
g_assert_cmpstr (arg_signature, ==, "u");
g_assert_cmpint (*arg, ==, '\0');
......@@ -3356,12 +3356,12 @@ _dbus_gobject_test (const char *test_data_dir)
g_assert_cmpint (*arg, !=, '\0');
arg = arg_iterate (arg, &arg_name, &arg_in, &constval, &retval, &arg_signature);
g_assert_cmpstr (arg_name, ==, "x");
g_assert (arg_in == TRUE);
g_assert_true (arg_in);
g_assert_cmpstr (arg_signature, ==, "u");
g_assert_cmpint (*arg, !=, '\0');
arg = arg_iterate (arg, &arg_name, &arg_in, &constval, &retval, &arg_signature);
g_assert_cmpint (retval, ==, RETVAL_NOERROR);
g_assert (arg_in == FALSE);
g_assert_false (arg_in);
g_assert_cmpstr (arg_signature, ==, "u");
g_assert_cmpint (*arg, ==, '\0');
......@@ -3371,12 +3371,12 @@ _dbus_gobject_test (const char *test_data_dir)
g_assert_cmpint (*arg, !=, '\0');
arg = arg_iterate (arg, &arg_name, &arg_in, &constval, &retval, &arg_signature);
g_assert_cmpstr (arg_name, ==, "x");
g_assert (arg_in == TRUE);
g_assert_true (arg_in);
g_assert_cmpstr (arg_signature, ==, "u");
g_assert_cmpint (*arg, !=, '\0');
arg = arg_iterate (arg, &arg_name, &arg_in, &constval, &retval, &arg_signature);
g_assert_cmpint (retval, ==, RETVAL_ERROR);
g_assert (arg_in == FALSE);
g_assert_false (arg_in);
g_assert_cmpstr (arg_signature, ==, "u");
g_assert_cmpint (*arg, ==, '\0');
......@@ -3386,12 +3386,12 @@ _dbus_gobject_test (const char *test_data_dir)
g_assert_cmpint (*arg, !=, '\0');
arg = arg_iterate (arg, &arg_name, &arg_in, &constval, &retval, &arg_signature);
g_assert_cmpstr (arg_name, ==, "val");
g_assert (arg_in == TRUE);
g_assert_true (arg_in);
g_assert_cmpstr (arg_signature, ==, "v");
g_assert_cmpint (*arg, !=, '\0');
arg = arg_iterate (arg, &arg_name, &arg_in, &constval, &retval, &arg_signature);
g_assert_cmpint (retval, ==, RETVAL_NONE);
g_assert (arg_in == FALSE);
g_assert_false (arg_in);
g_assert_cmpstr (arg_signature, ==, "s");
g_assert_cmpint (*arg, ==, '\0');
......
......@@ -2212,7 +2212,7 @@ main (int argc, char **argv)
G_TYPE_VALUE, &value, G_TYPE_INVALID))
lose_gerror ("Failed GetProperty call of \"should-be-hidden\" property", error);
g_assert (G_VALUE_HOLDS_BOOLEAN (&value));
g_assert (g_value_get_boolean (&value) == FALSE);
g_assert_false (g_value_get_boolean (&value));
g_value_unset (&value);
}
......@@ -2254,7 +2254,7 @@ main (int argc, char **argv)
G_TYPE_VALUE, &value, G_TYPE_INVALID))
lose_gerror ("Failed GetProperty call of \"should-be-hidden\" property", error);
g_assert (G_VALUE_HOLDS_BOOLEAN (&value));
g_assert (g_value_get_boolean (&value) == FALSE);
g_assert_false (g_value_get_boolean (&value));
g_value_unset (&value);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment