[PATCH xserver 5/7] test: Add basic SYNC tests.
Eric Anholt
eric at anholt.net
Thu Aug 3 21:18:32 UTC 2017
Keith Packard <keithp at keithp.com> writes:
> [ Unknown signature status ]
> Eric Anholt <eric at anholt.net> writes:
>
>> I couldn't find any, and I was modifying the implementation, so I had
>> to write some. I would like the test to end with a "make sure there
>> weren't any stray unchecked errors", but I didn't figure out how to do
>> that.
>
> Xlib used XSync for this, which just does GetInputFocus to make sure
> that all requests have been processed and replies and errors
> retrieved. Is that not sufficient here?
So I GetInputFocus, force the reply, free the reply, then poll for
events in a little loop that's basically "if anything happened,
exit(1)"?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20170803/8b29a532/attachment.sig>
More information about the xorg-devel
mailing list