tests/elements/leaks.c: check get_tracer_by_name return value

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/557>
This commit is contained in:
Mathieu Duponchelle 2020-07-06 11:55:38 +02:00 committed by GStreamer Merge Bot
parent e2dc90273e
commit 3df82624ea

View file

@ -334,6 +334,8 @@ GST_START_TEST (test_activity_start_stop)
GstMessage *m;
GstTracer *tracer = get_tracer_by_name ("plain");
fail_unless (tracer);
g_signal_emit_by_name (tracer, "activity-start-tracking");
pipe = gst_pipeline_new ("pipeline");
@ -372,6 +374,8 @@ GST_START_TEST (test_activity_log_checkpoint)
GstMessage *m;
GstTracer *tracer = get_tracer_by_name ("plain");
fail_unless (tracer);
g_signal_emit_by_name (tracer, "activity-start-tracking");
pipe = gst_pipeline_new ("pipeline");
@ -413,6 +417,8 @@ GST_START_TEST (test_activity_get_checkpoint)
GstMessage *m;
GstTracer *tracer = get_tracer_by_name ("more");
fail_unless (tracer);
g_signal_emit_by_name (tracer, "activity-start-tracking");
pipe = gst_pipeline_new ("pipeline");