The test is XFAILed for Linux x86_64 and i386 because of bug #23659.
What gives time to the inferior to reach the syscall? Should we add a sleep(1) here?
(nit): The "idiomatic" way for this is to use the "pass" keyword
The last WaitForEvent call will time out after 2 seconds, when there are no more pending events.
Ah, that's good to know.
Address review comments.
LGTM