]> git.sesse.net Git - vlc/commitdiff
Rudimentary test case for libvlc_event_type_name()
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 20 Feb 2010 12:31:42 +0000 (14:31 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 20 Feb 2010 12:31:42 +0000 (14:31 +0200)
test/libvlc/events.c

index 2c613216fc5acd2205690621a48a02116882119a..e0224b0d369635d7ef3b1bbd9a39a1ad236b11a5 100644 (file)
@@ -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++) {