[vlc-commits] test: inherit a variable that actually exists

Rémi Denis-Courmont git at videolan.org
Wed Feb 28 19:11:59 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Feb 28 20:07:08 2018 +0200| [bc98af685820ab248432e1c257db6f576700ecde] | committer: Rémi Denis-Courmont

test: inherit a variable that actually exists

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

 test/src/misc/variables.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/src/misc/variables.c b/test/src/misc/variables.c
index 7469a0c441..0637a53ed7 100644
--- a/test/src/misc/variables.c
+++ b/test/src/misc/variables.c
@@ -422,8 +422,8 @@ static void test_creation_and_type( libvlc_int_t *p_libvlc )
     var_Destroy( p_libvlc, "bla" );
     assert( var_Get( p_libvlc, "bla", &val ) == VLC_ENOVAR );
 
-    var_Create( p_libvlc, "bla", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT );
-    assert( var_Type( p_libvlc, "bla" ) == (VLC_VAR_INTEGER) );
+    var_Create( p_libvlc, "program", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT );
+    assert( var_Type( p_libvlc, "program" ) == (VLC_VAR_INTEGER) );
 
     assert( var_Create( p_libvlc, "bla", VLC_VAR_INTEGER | VLC_VAR_ISCOMMAND ) == VLC_SUCCESS );
     assert( var_Type( p_libvlc, "bla" ) == (VLC_VAR_INTEGER | VLC_VAR_ISCOMMAND) );



More information about the vlc-commits mailing list