mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
check: fix object unit test
This commit is contained in:
parent
7d24f18027
commit
7f684e1525
1 changed files with 6 additions and 6 deletions
|
@ -360,7 +360,7 @@ GST_START_TEST (test_fake_object_parentage)
|
||||||
fail_if (object1 == NULL, "Failed to create instance of GstFakeObject");
|
fail_if (object1 == NULL, "Failed to create instance of GstFakeObject");
|
||||||
fail_unless (GST_IS_OBJECT (object1),
|
fail_unless (GST_IS_OBJECT (object1),
|
||||||
"GstFakeObject instance is not a GstObject");
|
"GstFakeObject instance is not a GstObject");
|
||||||
fail_unless (GST_OBJECT_IS_FLOATING (object1),
|
fail_unless (g_object_is_floating (object1),
|
||||||
"GstFakeObject instance is not floating");
|
"GstFakeObject instance is not floating");
|
||||||
|
|
||||||
/* check the parent */
|
/* check the parent */
|
||||||
|
@ -374,7 +374,7 @@ GST_START_TEST (test_fake_object_parentage)
|
||||||
fail_if (result == TRUE, "GstFakeObject accepted itself as parent");
|
fail_if (result == TRUE, "GstFakeObject accepted itself as parent");
|
||||||
|
|
||||||
/* should still be floating */
|
/* should still be floating */
|
||||||
fail_unless (GST_OBJECT_IS_FLOATING (object1),
|
fail_unless (g_object_is_floating (object1),
|
||||||
"GstFakeObject instance is not floating");
|
"GstFakeObject instance is not floating");
|
||||||
|
|
||||||
/* create another object */
|
/* create another object */
|
||||||
|
@ -383,7 +383,7 @@ GST_START_TEST (test_fake_object_parentage)
|
||||||
"Failed to create another instance of GstFakeObject");
|
"Failed to create another instance of GstFakeObject");
|
||||||
fail_unless (GST_IS_OBJECT (object2),
|
fail_unless (GST_IS_OBJECT (object2),
|
||||||
"second GstFakeObject instance is not a GstObject");
|
"second GstFakeObject instance is not a GstObject");
|
||||||
fail_unless (GST_OBJECT_IS_FLOATING (object1),
|
fail_unless (g_object_is_floating (object1),
|
||||||
"GstFakeObject instance is not floating");
|
"GstFakeObject instance is not floating");
|
||||||
|
|
||||||
/* try to set other object as parent */
|
/* try to set other object as parent */
|
||||||
|
@ -392,10 +392,10 @@ GST_START_TEST (test_fake_object_parentage)
|
||||||
"GstFakeObject could not accept other object as parent");
|
"GstFakeObject could not accept other object as parent");
|
||||||
|
|
||||||
/* should not be floating anymore */
|
/* should not be floating anymore */
|
||||||
fail_if (GST_OBJECT_IS_FLOATING (object1),
|
fail_if (g_object_is_floating (object1),
|
||||||
"GstFakeObject instance is still floating");
|
"GstFakeObject instance is still floating");
|
||||||
/* parent should still be floating */
|
/* parent should still be floating */
|
||||||
fail_unless (GST_OBJECT_IS_FLOATING (object2),
|
fail_unless (g_object_is_floating (object2),
|
||||||
"GstFakeObject instance is not floating");
|
"GstFakeObject instance is not floating");
|
||||||
|
|
||||||
/* check the parent */
|
/* check the parent */
|
||||||
|
@ -416,7 +416,7 @@ GST_START_TEST (test_fake_object_parentage)
|
||||||
fail_if (parent != NULL, "GstFakeObject has parent");
|
fail_if (parent != NULL, "GstFakeObject has parent");
|
||||||
|
|
||||||
/* object should not be floating */
|
/* object should not be floating */
|
||||||
fail_if (GST_OBJECT_IS_FLOATING (object1),
|
fail_if (g_object_is_floating (object1),
|
||||||
"GstFakeObject instance is floating again");
|
"GstFakeObject instance is floating again");
|
||||||
|
|
||||||
gst_object_unref (object1);
|
gst_object_unref (object1);
|
||||||
|
|
Loading…
Reference in a new issue