mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 14:26:00 +00:00
Tests: stub main's g_release_unpaced in the DMA-BUF quarantine probe
The probe copies release_buffer out of compositor.c; since the merge it reads g_release_unpaced, which the harness did not declare (setUpClass failed to compile).
This commit is contained in:
1 parent
c2b00e1db6
commit
feb13b52e3
1 file changed
+3
@@ -51,6 +51,9 @@ class VkDmabufQuarantineTest(unittest.TestCase):
|
||||
# One surface per buffer in these scenarios: never shown elsewhere.
|
||||
helpers += ['static int buffer_shown_elsewhere(struct wl_resource *b, const struct surface *e) '
|
||||
'{ (void)b; (void)e; return 0; }']
|
||||
if re.search(r'\bvolatile int g_release_unpaced;', comp):
|
||||
# Releases stay paced in these scenarios (fps limit -1 sends them at once).
|
||||
helpers.insert(0, 'static int g_release_unpaced;')
|
||||
query = function(vk, 'vkp_completion_unknown') if 'int vkp_completion_unknown(' in vk else \
|
||||
'int vkp_completion_unknown(void) { return g_dev_state == -3; }'
|
||||
comp_functions = [function(comp, names[0])] + helpers + [function(comp, n) for n in names[1:]]
|
||||
|
||||
Reference in new issue
Block a user