tests: allocator: Fix FDMemory portability issue
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 28 Oct 2020 19:51:27 +0000 (15:51 -0400)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 29 Oct 2020 09:45:25 +0000 (09:45 +0000)
commitdb4567152d0cdb86279c0ad7a3cb9f9edaae7174
treef6cb065b0da040ed529b0c13dbfc413357db9657
parentad697e8f9784b84c05a6285101d9bb1271e8859e
tests: allocator: Fix FDMemory portability issue

This fixes few issues in the test but mainly some portability issue reported
on Ubutun. The test now uses a randomly name tempory file located into system
default tempory location and uses glib wrappers when available.

Fixes !895

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/901>
tests/check/libs/allocators.c