[PATCH] test/event-loop: Check readable state on 0, not 1
Quentin Glidic
sardemff7+git at sardemff7.net
Sun Jan 6 06:58:59 PST 2013
When redirecting stdout to a non-readable file makes the test fail as a
false negative
---
tests/event-loop-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/event-loop-test.c b/tests/event-loop-test.c
index e630cde..6acee65 100644
--- a/tests/event-loop-test.c
+++ b/tests/event-loop-test.c
@@ -44,7 +44,7 @@ TEST(event_loop_post_dispatch_check)
struct wl_event_source *source;
int dispatch_ran = 0;
- source = wl_event_loop_add_fd(loop, 1, WL_EVENT_READABLE,
+ source = wl_event_loop_add_fd(loop, 0, WL_EVENT_READABLE,
fd_dispatch, &dispatch_ran);
wl_event_source_check(source);
--
1.8.0.3
More information about the wayland-devel
mailing list