tests: Remove invalid buffer test in test_get_allowed_caps.
authorDoug Nazar <nazard@nazar.ca>
Sun, 11 Apr 2021 12:23:27 +0000 (08:23 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 12 Apr 2021 10:15:47 +0000 (10:15 +0000)
Passing a non-GObject pointer causes SIGSEGV on certain architectures.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/790>

tests/check/gst/gstpad.c

index 7ee0fee..3a4ee0d 100644 (file)
@@ -169,15 +169,10 @@ GST_START_TEST (test_get_allowed_caps)
 {
   GstPad *src, *sink;
   GstCaps *caps, *gotcaps;
-  GstBuffer *buffer;
   GstPadLinkReturn plr;
 
   ASSERT_CRITICAL (gst_pad_get_allowed_caps (NULL));
 
-  buffer = gst_buffer_new ();
-  ASSERT_CRITICAL (gst_pad_get_allowed_caps ((GstPad *) buffer));
-  gst_buffer_unref (buffer);
-
   src = gst_pad_new ("src", GST_PAD_SRC);
   fail_if (src == NULL);
   caps = gst_pad_get_allowed_caps (src);