tests: allocators: Fix fdmem test with recent GLib
authorJan Alexander Steffens (heftig) <heftig@archlinux.org>
Mon, 10 Apr 2023 14:06:19 +0000 (16:06 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 14 Apr 2023 10:14:48 +0000 (10:14 +0000)
commita299399f5c93737bf963e34543578dba098b2f50
treeea9c215c502d1a9ee4f211ab8a47cdcdf82ef090
parent020115dc34fc0730ac6cc80d7cc7fed8c3074789
tests: allocators: Fix fdmem test with recent GLib

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: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2480
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4422>
subprojects/gst-plugins-base/tests/check/libs/allocators.c