[PATCH xserver 5/7] test: Add basic SYNC tests.
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
> 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,
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 832 bytes
Desc: not available
More information about the xorg-devel