memory: tests: Fix test to ensure all logs are less severe than WARN

If GST_DEBUG is enabled the existing test will fail as it gets INFO
log messages.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9273>
This commit is contained in:
Doug Nazar 2025-06-22 03:01:52 -04:00 committed by GStreamer Marge Bot
parent aa71fbd4ae
commit 4c7b2fe4cc

View File

@ -679,8 +679,7 @@ _custom_log_func (GstDebugCategory * category,
GstDebugLevel level, const gchar * file, const gchar * function,
gint line, GObject * object, GstDebugMessage * message, gpointer unused)
{
const gchar *dbg_msg = gst_debug_message_get (message);
fail_unless (dbg_msg == NULL);
ck_assert_uint_gt (level, GST_LEVEL_WARNING);
}
#ifndef GST_DISABLE_GST_DEBUG