mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-12-04 02:57:35 +00:00
ClosesRenderNodeDescriptorWhenDeviceCreationFails no longer predicts the descriptor with a probe open()/close(): open_fake_render_node() records the descriptor it returned, and the test checks that one, so another thread claiming the number between the calls cannot make it flaky or check the wrong fd. DoesNotCreateDeviceWhenRenderNodeFailsToOpen covers the early return in gbm_device_t::init(): with open_render_node returning -1, create_device is never called (counted by the fake accessors), and the owner stays empty (no device, fd() == -1, nothing destroyed).