tests: allocators: Fix fdmem test with recent GLib

Jan Alexander Steffens requested to merge heftig/gstreamer:fix-fdmem-test into main

The test failed with recent GLib, where g_close emits a critical warning on EBADF. Remove the g_close check from test_fdmem and add another version that tests GST_FD_MEMORY_FLAG_DONT_CLOSE.

We will depend on the Valgrind test run to warn us about leaked FDs.

Fixes: #2480 (closed)

Edited by Jan Alexander Steffens

Merge request reports