tests/gbm: Add gbm_device_get_fd() test
commitf7ece74a107a2f99b2f494d978c84f8d51faa703
authorDaniel Stone <daniels@collabora.com>
Mon, 22 Jan 2024 15:39:52 +0000 (22 15:39 +0000)
committerMarge Bot <emma+marge@anholt.net>
Wed, 17 Apr 2024 12:58:37 +0000 (17 12:58 +0000)
tree150ef9e668bedc6232933284944a0d9d49987eb1
parentfd4a6c521c6c16ee9edac78e5f22a2551d62df9b
tests/gbm: Add gbm_device_get_fd() test

Make sure that GBM doesn't dup() the FD from under us, as users rely on
this being the case.

Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/865>
tests/gbm/CMakeLists.no_api.txt
tests/gbm/gbm-device.c [new file with mode: 0644]