[PATCH 3/4] queue-test: Add another assertion

Karsten Otto karsten.otto at posteo.de
Sun Sep 28 11:49:04 PDT 2014


From: Philip Withnall <philip at tecnocode.co.uk>

Ensure that the round trip succeeds.

[KAO: adjusted to current test framework]

Signed-off-by: Philip Withnall <philip at tecnocode.co.uk>
---
 tests/queue-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/queue-test.c b/tests/queue-test.c
index 96f2100..6e2e932 100644
--- a/tests/queue-test.c
+++ b/tests/queue-test.c
@@ -66,7 +66,7 @@ client_test_proxy_destroy(void)
 	assert(registry != NULL);
 	wl_registry_add_listener(registry, &registry_listener,
 				 &counter);
-	wl_display_roundtrip(display);
+	assert(wl_display_roundtrip(display) != -1);
 
 	assert(counter == 1);
 
-- 
1.9.1



More information about the wayland-devel mailing list