]> git.sesse.net Git - vlc/blobdiff - test/native/init.c
* Tests for previous commit
[vlc] / test / native / init.c
index c334c3e7cf3d3b626d05d9b881ad173fb0269505..fa35c8b7e99e2382a1b39b4b032af9477bb2125b 100644 (file)
@@ -1,6 +1,15 @@
+#include "../pyunit.h"
 #include "tests.h"
 
+PyObject *init( PyObject *self, PyObject *args )
+{
+    (void)setvbuf (stdout, NULL, _IONBF, 0);
+    Py_INCREF( Py_None );
+    return Py_None;
+}
+
 static PyMethodDef native_libvlc_test_methods[] = {
+   DEF_METHOD( init, "Init some stuff" )
    DEF_METHOD( create_destroy, "Create and destroy" )
    DEF_METHOD( exception_test, "Test Exception handling" )
    DEF_METHOD( playlist_test, "Test Playlist interaction" )
@@ -11,7 +20,12 @@ static PyMethodDef native_libvlc_test_methods[] = {
    DEF_METHOD( chains_test, "Test building of chains" )
    DEF_METHOD( gui_chains_test, "Test interactions between chains and GUI" )
    DEF_METHOD( psz_chains_test, "Test building of chain strings" )
+   DEF_METHOD( bsearch_direct_test, "Test Bsearch without structure" )
+   DEF_METHOD( bsearch_member_test, "Test Bsearch with structure" )
+   DEF_METHOD( dict_test, "Test dictionnaries" )
    { NULL, NULL, 0, NULL }
 };
 
+asserts =0;
+
 DECLARE_MODULE( native_libvlc_test )