From 7e6dd770414cc0d17e3625653caee86eba676b38 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 14 May 2008 18:09:01 +0000 Subject: [PATCH] tests/check/gst/gstinfo.c: Add a test for removing the default log handler. Seems to fail under windows. Original commit message from CVS: * tests/check/gst/gstinfo.c: Add a test for removing the default log handler. Seems to fail under windows. --- ChangeLog | 6 ++++++ common | 2 +- tests/check/gst/gstinfo.c | 11 +++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a7e7cb29b8..108f03d7a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-12 Stefan Kost + + * tests/check/gst/gstinfo.c: + Add a test for removing the default log handler. Seems to fail under + windows. + 2008-05-14 Wim Taymans * gst/gstpad.c: (gst_pad_peer_accept_caps): diff --git a/common b/common index 2d9c09df0f..d78efae300 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 2d9c09df0fe4ad3f570fea9f649cfc6c4511080d +Subproject commit d78efae300d4dff0291717ccf7a2b82c713a81ef diff --git a/tests/check/gst/gstinfo.c b/tests/check/gst/gstinfo.c index a4c32d9e6e..e22259bc34 100644 --- a/tests/check/gst/gstinfo.c +++ b/tests/check/gst/gstinfo.c @@ -180,6 +180,16 @@ GST_START_TEST (info_segment_format_printf_extension) GST_END_TEST; +GST_START_TEST (info_log_handler) +{ + guint removed; + + removed = gst_debug_remove_log_function (gst_debug_log_default); + fail_unless (removed == 1); +} + +GST_END_TEST; + #endif static Suite * @@ -194,6 +204,7 @@ gst_info_suite (void) #ifndef GST_DISABLE_GST_DEBUG tcase_add_test (tc_chain, info_segment_format_printf_extension); tcase_add_test (tc_chain, info_ptr_format_printf_extension); + tcase_add_test (tc_chain, info_log_handler); #endif return s;