buffer: Add more exhaustive test for gst_buffer_foreach_meta() meta removal
authorDardo D Kleiner <dardokleiner@gmail.com>
Sat, 1 Dec 2018 15:32:07 +0000 (10:32 -0500)
committerSebastian Dröge <slomo@coaxion.net>
Wed, 5 Dec 2018 20:50:45 +0000 (20:50 +0000)
commitec5e781e6bf2b77ad632068a42d8eaa53a2950ba
treeb8fef31ec082d4a171cc85d8a28bf4f9246cae8f
parent6318e7c6750470b0d1378d6550715668c0747758
buffer: Add more exhaustive test for gst_buffer_foreach_meta() meta removal

Existing test for iterating/removing buffer meta data was insufficient
to detect linked list corruption when removing multiple items, and could
also suffer from such corruption in attempting to count remaining items.
Modified the one test and added several others to exercise multiple
scenarios.

Validates fix for issue #332.
tests/check/gst/gstmeta.c