Files
Sunshine/tests
Raphael Derosso Pereira 60ea5b7c57 test(linux): cover the render-node open failure and record the fake's fd
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).
2026-10-09 09:56:06 -04:00
..