weston/tests
Pekka Paalanen fd01ba055d tests: check for NULL surface in keyboard and pointer handlers
When a test destroys a wl_surface, it is still possible to get events
referring to the destroyed surface. The surface in such cases will be
NULL.

Handle NULL surface gracefully in keyboard and pointer enter/leave
handlers. Touch-down handler is already NULL-safe.

This fixes a SEGV in a test I am writing for wp_viewport.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
2016-04-22 10:45:09 +03:00
..
reference tests/internal-screenshot: Fix test so it doesn't expect shell surfaces 2015-05-26 11:26:06 +03:00
.gitignore Revert "gitignore: Ignore generated header test files" 2015-05-26 23:22:19 -07:00
bad-buffer-test.c Remove redundant #include path component. 2015-06-15 17:11:09 -07:00
buffer-count-test.c Remove redundant #include path component. 2015-06-15 17:11:09 -07:00
button-test.c tests: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:19 -07:00
config-parser-test.c zunitc: made name of test fixture parameter explicit. 2015-10-23 14:57:09 -07:00
devices-test.c devices-test: Fix typo 'destroyes' in a comment 2015-10-20 08:35:43 -07:00
event-test.c tests: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:19 -07:00
internal-screenshot-test.c tests: Migrate screenshot code from internal test to client helpers 2015-09-25 11:23:08 -07:00
internal-screenshot.ini tests: Add internal test for the weston test screenshot capability 2015-05-21 15:06:11 -07:00
ivi_layout-internal-test.c ivi-shell: rework configure_surface notification 2016-04-05 11:53:48 +03:00
ivi_layout-test-plugin.c ivi-shell: rework configure_surface notification 2016-04-05 11:53:48 +03:00
ivi_layout-test.c clients & tests: Unify multiple definitions of x*alloc and related functions 2016-03-17 14:13:13 +02:00
ivi-shell-app-test.c tests: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:19 -07:00
ivi-test.h tests: test set for ivi-layer normal use case with helper client 2015-06-25 11:38:37 +03:00
keyboard-test.c Coding style fixes 2015-08-07 12:01:22 -07:00
matrix-test.c Remove redundant #include path component. 2015-06-15 17:11:09 -07:00
presentation-test.c clients & tests: Unify multiple definitions of x*alloc and related functions 2016-03-17 14:13:13 +02:00
roles-test.c tests: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:19 -07:00
setbacklight.c tests: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:19 -07:00
subsurface-test.c tests: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:19 -07:00
surface-global-test.c Remove redundant #include path component. 2015-06-15 17:11:09 -07:00
surface-screenshot.c input: Don't test keyboard/pointer/touch pointers 2015-07-31 15:16:09 -07:00
surface-test.c Remove redundant #include path component. 2015-06-15 17:11:09 -07:00
text-test.c Use text input protocol from wayland-protocols 2015-11-19 13:07:10 +02:00
vertex-clip-test.c Moved helper macro to a discrete include file. 2015-06-15 17:11:45 -07:00
weston-test-client-helper.c tests: check for NULL surface in keyboard and pointer handlers 2016-04-22 10:45:09 +03:00
weston-test-client-helper.h clients & tests: Unify multiple definitions of x*alloc and related functions 2016-03-17 14:13:13 +02:00
weston-test-runner.c tests: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:19 -07:00
weston-test-runner.h Moved helper macro to a discrete include file. 2015-06-15 17:11:45 -07:00
weston-test.c cosmetic: Remove use of C++ style comments 2015-12-03 15:28:53 -08:00
weston-tests-env tests: cleanup test runner script. 2016-02-23 16:08:13 +02:00
xwayland-test.c tests: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:19 -07:00