[PATCH 2/3] tests: remove unnecessary lines from queue-test

Marek Chalupa mchqwerty at gmail.com
Thu Aug 21 03:07:07 PDT 2014


Earlier, the wl_display_dispatch_pending were setting number of thread
that can dispatch events. This behaviour was removed later,
so now these lines are redundant.

Related commits:

385fe30e8b144a968aa88c6546c2ef247771b3d7
78cfa967681c965d23f6cbf76e080bbb0b564ff6
3c7e8bfbb4745315b7bcbf69fa746c3d6718c305

Signed-off-by: Marek Chalupa <mchqwerty at gmail.com>
---
 tests/queue-test.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/tests/queue-test.c b/tests/queue-test.c
index 3de8924..a7b54d9 100644
--- a/tests/queue-test.c
+++ b/tests/queue-test.c
@@ -130,11 +130,6 @@ client_test_multiple_queues(void)
 	state.display = wl_display_connect(SOCKET_NAME);
 	client_assert(state.display);
 
-	/* Make the current thread the display thread. This is because
-	 * wl_display_dispatch_queue() will only read the display fd if
-	 * the main display thread has been set. */
-	wl_display_dispatch_pending(state.display);
-
 	queue = wl_display_create_queue(state.display);
 	client_assert(queue);
 
@@ -186,11 +181,6 @@ client_test_queue_roundtrip(void)
 	display = wl_display_connect(SOCKET_NAME);
 	client_assert(display);
 
-	/* Make the current thread the display thread. This is because
-	 * wl_display_dispatch_queue() will only read the display fd if
-	 * the main display thread has been set. */
-	wl_display_dispatch_pending(display);
-
 	queue = wl_display_create_queue(display);
 	client_assert(queue);
 
-- 
2.0.4



More information about the wayland-devel mailing list