[vlc-devel] commit: Rudimentary test case for libvlc_event_type_name() ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Feb 20 13:31:56 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Feb 20 14:31:42 2010 +0200| [e7ce21e424ac7bc507f3942a90749ef44321b594] | committer: Rémi Denis-Courmont 

Rudimentary test case for libvlc_event_type_name()

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

 test/libvlc/events.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/test/libvlc/events.c b/test/libvlc/events.c
index 2c61321..e0224b0 100644
--- a/test/libvlc/events.c
+++ b/test/libvlc/events.c
@@ -55,6 +55,8 @@ static void test_event_type_reception( libvlc_event_manager_t * em, libvlc_event
     assert (*callback_was_called);
 }
 
+#include <string.h>
+
 static void test_events (const char ** argv, int argc)
 {
     libvlc_instance_t *vlc;
@@ -81,6 +83,9 @@ static void test_events (const char ** argv, int argc)
 
     em = libvlc_media_player_event_manager (mi);
 
+    for( int i = 0; i < 0x700; i++ )
+         strlen(libvlc_event_type_name( i ));
+
     log ("+ Testing attaching to Media Instance\n");
 
     for (int i = 0; i < mi_events_len; i++) {




More information about the vlc-devel mailing list