[vlc-devel] commit: test: destroy the variables. ( Rémi Duraffort )
git version control
git at videolan.org
Fri Jul 24 13:43:14 CEST 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Jul 24 13:30:02 2009 +0200| [cebfd6679ebb17695ec4135c1d99a7b2efe80a6f] | committer: Rémi Duraffort
test: destroy the variables.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cebfd6679ebb17695ec4135c1d99a7b2efe80a6f
---
test/src/misc/variables.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/test/src/misc/variables.c b/test/src/misc/variables.c
index f23cb30..361ac7b 100644
--- a/test/src/misc/variables.c
+++ b/test/src/misc/variables.c
@@ -388,6 +388,10 @@ static void test_creation_and_type( libvlc_int_t *p_libvlc )
assert( var_Create( p_libvlc, "bla", VLC_VAR_INTEGER | VLC_VAR_HASCHOICE ) == VLC_SUCCESS );
assert( var_Type( p_libvlc, "bla" ) == (VLC_VAR_INTEGER | VLC_VAR_ISCOMMAND | VLC_VAR_HASMAX | VLC_VAR_HASSTEP | VLC_VAR_HASCHOICE) );
+ var_Destroy( p_libvlc, "bla" );
+ var_Destroy( p_libvlc, "bla" );
+ var_Destroy( p_libvlc, "bla" );
+ assert( var_Get( p_libvlc, "bla", &val ) == VLC_ENOVAR );
}
static void test_variables( libvlc_instance_t *p_vlc )
More information about the vlc-devel
mailing list