summaryrefslogtreecommitdiff
path: root/tests/meson.build
diff options
context:
space:
mode:
authorBerke Güzel <wenekar1@gmail.com>2026-10-13 13:18:53 +0300
committerBerke Güzel <wenekar1@gmail.com>2026-10-13 13:18:53 +0300
commit87d0bc50d53dc216efb2b04495f090616318bc5c (patch)
tree9d86e4f49631b06875bd51f8f51410370cebe435 /tests/meson.build
parent71091ca35176f62469311fbf02f6e9333b5f6f0b (diff)
test(app): destroy a surface from its input event callback
The test pushes two key events into a Wayland surface's queue. The first event's callback destroys the surface. The run must end cleanly, without delivering the second event. Before 71091ca, ASan reported a heap-use-after-free in app_runner_dispatch_input_events. The test skips when WAYLAND_DISPLAY is unset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/meson.build')
-rw-r--r--tests/meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/meson.build b/tests/meson.build
index f74e3f8..c06fcca 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -157,6 +157,10 @@ if has_wayland
dependencies: yasl_dep,
)
test('ime-ownership', ime_test)
+ app_input_test = executable('yasl-app-input-test', 'wayland/test_app_input.c',
+ include_directories: inc, dependencies: yasl_dep,
+ )
+ test('app-input-destroy', app_input_test)
tablet_wayland_test = executable('yasl-tablet-wayland-test', 'wayland/test_tablet.c',
include_directories: inc, dependencies: yasl_dep,
)