[vlc-devel] commit: Add a basic test for var_ToggleBool. ( Rémi Duraffort )

git version control git at videolan.org
Mon Jul 27 09:51:30 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Jul 27 09:51:10 2009 +0200| [d94eb977dd6cb39af1f5609357f44a54112179ef] | committer: Rémi Duraffort 

Add a basic test for var_ToggleBool.

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

 test/src/misc/variables.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/test/src/misc/variables.c b/test/src/misc/variables.c
index 361ac7b..fe60bcb 100644
--- a/test/src/misc/variables.c
+++ b/test/src/misc/variables.c
@@ -72,6 +72,12 @@ static void test_booleans( libvlc_int_t *p_libvlc )
         assert( var_GetBool( p_libvlc, psz_var_name[i] ) == var_value[i].b_bool );
 
     for( i = 0; i < i_var_count; i++ )
+        var_ToggleBool( p_libvlc, psz_var_name[i] );
+
+    for( i = 0; i < i_var_count; i++ )
+        assert( var_GetBool( p_libvlc, psz_var_name[i] ) != var_value[i].b_bool );
+
+    for( i = 0; i < i_var_count; i++ )
         var_Destroy( p_libvlc, psz_var_name[i] );
 }
 




More information about the vlc-devel mailing list