diff options
Diffstat (limited to 'tests/common/test_surface_integration.c')
| -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); |
