unittests: Test tv_list_item_\* functions

To check that memory is free()d correctly.
This commit is contained in:
ZyX
2017-03-12 13:41:11 +03:00
parent a32db8ed19
commit a394167177
3 changed files with 218 additions and 4 deletions

View File

@@ -228,6 +228,7 @@ void tv_list_unref(list_T *const l)
/// @param[in] item2 Last item to remove.
void tv_list_remove_items(list_T *const l, listitem_T *const item,
listitem_T *const item2)
FUNC_ATTR_NONNULL_ALL
{
// notify watchers
for (listitem_T *ip = item; ip != NULL; ip = ip->li_next) {