tests: fix unit test
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 12 Mar 2012 09:41:28 +0000 (10:41 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 12 Mar 2012 09:41:28 +0000 (10:41 +0100)
with the new caps API, there is more sharing and less copying going on so the
unit test refcounts are different.

tests/check/gst/gstpad.c

index 06dde34..cb5ef36 100644 (file)
@@ -200,7 +200,7 @@ GST_START_TEST (test_get_allowed_caps)
   fail_if (gotcaps == NULL);
   fail_unless (gst_caps_is_equal (gotcaps, caps));
 
-  ASSERT_CAPS_REFCOUNT (gotcaps, "gotcaps", 1);
+  ASSERT_CAPS_REFCOUNT (gotcaps, "gotcaps", 4);
   gst_caps_unref (gotcaps);
 
   gst_pad_unlink (src, sink);