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:
The412Banner committed 2026-10-27 12:27:40 +00:00
1 parent c2b00e1db6
commit feb13b52e3
1 file changed
+3
+3
View File
@@ -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:]]