diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-14 14:21:13 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-14 14:21:13 +0300 |
| commit | 7ad4f86f2aac75935a52d31383593c1327204729 (patch) | |
| tree | 6a2fa7baad55232e79fee613f342abe31c4d4336 /tests/common | |
| parent | 7e8bf8d2a81f37303e0c9ae430f1acbff106da22 (diff) | |
Count touch as a press, report a missing bell, and test X11 INCR
- Wayland: a touch contact is a press for move, resize, menu and drag
again, and a compositor without xdg-system-bell reports ENOTSUP.
- yasl_surface_set_cursor no longer reports a stale errno.
- The X11 input test expects the TIMESTAMP and MULTIPLE targets and
drives an INCR transfer instead of expecting INCR to be rejected.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/common')
| -rw-r--r-- | tests/common/test_surface_integration.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/common/test_surface_integration.c b/tests/common/test_surface_integration.c index 9067640..887f254 100644 --- a/tests/common/test_surface_integration.c +++ b/tests/common/test_surface_integration.c @@ -265,9 +265,8 @@ int main(int argc, char **argv) int restored = yasl_surface_request(s, YASL_REQUEST_RESTORE); assert(restored == 0 || restored == -ENOTSUP); drain(); - /* ENOTSUP is the documented answer when the compositor lacks xdg-system-bell; Wayland - * currently reports EIO there, so only the 0-or-errno rule is checked. */ - assert(yasl_surface_bell(s) <= 0); + int bell = yasl_surface_bell(s); + assert(bell == 0 || bell == -ENOTSUP); /* Desktop queries and the drag cancel, which is a no-op without a drag. */ assert(yasl_get_appearance() <= 7); |
