Commit 138f51f9 authored by Simon McVittie's avatar Simon McVittie

header-fields test: Exercise _dbus_message_remove_unknown_fields

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=100317Reviewed-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
parent e6263cbe
......@@ -456,7 +456,11 @@ test_weird_header_field (void *user_data,
goto out;
}
/* TODO: Actually filter its header */
if (!_dbus_message_remove_unknown_fields (filtered))
{
g_assert_false (have_memory);
goto out;
}
/* All known headers are the same as in the modified message that was
* deserialized from the same blob */
......@@ -520,10 +524,7 @@ test_weird_header_field (void *user_data,
==, DBUS_TYPE_BYTE);
_dbus_type_reader_read_basic (&sub, &field_code);
if (field_code == NOT_A_HEADER_FIELD)
{
g_test_message ("TODO: header field was not filtered out");
}
g_assert_cmpuint (field_code, !=, NOT_A_HEADER_FIELD);
_dbus_type_reader_next (&array);
}
......
Markdown is supported
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