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

Submitted by Philip Withnall on Nov. 1, 2014, 5:06 p.m.

Details

Message ID 1414861606.2217.28.camel@philip-laptop
State Accepted
Headers show

Not browsing as part of any series.

Commit Message

Philip Withnall Nov. 1, 2014, 5:06 p.m.
Ensure that the round trip succeeds.

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

Patch hide | download patch | download mbox

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);
 

Comments

On Sat, 01 Nov 2014 17:06:46 +0000
Philip Withnall <philip@tecnocode.co.uk> wrote:

> Ensure that the round trip succeeds.
> 
> Signed-off-by: Philip Withnall <philip at tecnocode.co.uk>
> Signed-off-by: Karsten Otto <ottoka at posteo.de>
> ---
>  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);
>  

Pushed.


Thanks,
pq