• Marek Chalupa's avatar
    tests: add test for reading after an error occurred · 71141288
    Marek Chalupa authored
    This test shows that it's possible to successfully call wl_display_prepare_read
    and wl_display_read_events after an error occurred. That may lead to
    When you call prepare read from two threads and then call read_events,
    one thread gets sleeping. The call from the other thread will return -1 and invokes
    display_fatal_error, but since
    we have display->last_error already set, the broadcast is not called and
    the sleeping thread sleeps indefinitely.
    Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
display-test.c 13.7 KB