From b1ad4a67723cef931ebffa0c1c6e8a5ae668088f Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Tue, 6 Nov 2007 00:59:54 +0000 Subject: [PATCH] tests/check/gst/gstobject.c: Disable silly racy test that always fails on this combination of CPU and kernel. Original commit message from CVS: * tests/check/gst/gstobject.c: Disable silly racy test that always fails on this combination of CPU and kernel. --- ChangeLog | 6 ++++++ tests/check/gst/gstobject.c | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7e120a6c4..14930d38c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-11-06 Jan Schmidt + + * tests/check/gst/gstobject.c: + Disable silly racy test that always fails on this combination of CPU + and kernel. + 2007-11-03 Tim-Philipp Müller Patch by: Murray Cumming diff --git a/tests/check/gst/gstobject.c b/tests/check/gst/gstobject.c index ea08fb51e..7f7e931ab 100644 --- a/tests/check/gst/gstobject.c +++ b/tests/check/gst/gstobject.c @@ -155,11 +155,7 @@ GST_END_TEST return NULL; } -/* - * main thread sets and gets name while other threads set the name - * constantly; fails because lock is released inbetween set and get - */ - +#if 0 GST_START_TEST (test_fake_object_name_threaded_wrong) { GstObject *object; @@ -194,7 +190,9 @@ GST_START_TEST (test_fake_object_name_threaded_wrong) fail_unless (expected_failure, "name did not get changed"); } -GST_END_TEST +GST_END_TEST; +#endif + /* * main thread sets and gets name directly on struct inside the object lock * succeed because lock is held during set/get, and threads are locked out @@ -453,7 +451,9 @@ GST_END_TEST suite_add_tcase (s, tc_chain); tcase_add_test (tc_chain, test_fake_object_new); tcase_add_test (tc_chain, test_fake_object_name); +#if 0 tcase_add_test (tc_chain, test_fake_object_name_threaded_wrong); +#endif tcase_add_test (tc_chain, test_fake_object_name_threaded_right); tcase_add_test (tc_chain, test_fake_object_name_threaded_unique); tcase_add_test (tc_chain, test_fake_object_parentage); -- 2.39.2