[vlc-commits] test: thumbnail: Fix/clarify error messages

Hugo Beauzée-Luyssen git at videolan.org
Mon Dec 3 14:23:16 CET 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Nov 30 13:20:30 2018 +0100| [35244a15dc59265ed42a0832060696b0c5066e28] | committer: Hugo Beauzée-Luyssen

test: thumbnail: Fix/clarify error messages

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=35244a15dc59265ed42a0832060696b0c5066e28
---

 test/src/input/thumbnail.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/test/src/input/thumbnail.c b/test/src/input/thumbnail.c
index 37a86f3b9b..b7dc26f978 100644
--- a/test/src/input/thumbnail.c
+++ b/test/src/input/thumbnail.c
@@ -74,7 +74,8 @@ static void thumbnailer_callback( void* data, picture_t* thumbnail )
 
     if ( thumbnail != NULL )
     {
-        assert( test_params[p_ctx->test_idx].b_expected_success && "Unexpected failure" );
+        assert( test_params[p_ctx->test_idx].b_expected_success &&
+                "Expected failure but got a thumbnail" );
         assert( thumbnail->format.i_chroma == VLC_CODEC_ARGB );
 
         /* TODO: Enable this once the new clock is merged */
@@ -96,7 +97,8 @@ static void thumbnailer_callback( void* data, picture_t* thumbnail )
 #endif
     }
     else
-        assert( !test_params[p_ctx->test_idx].b_expected_success && "Unexpected thumbnail" );
+        assert( !test_params[p_ctx->test_idx].b_expected_success &&
+                "Expected a thumbnail but got a failure" );
 
     p_ctx->b_done = true;
     vlc_cond_signal( &p_ctx->cond );



More information about the vlc-commits mailing list