summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJens Georg <jensg@openismus.com>2013-04-30 11:10:32 +0200
committerJens Georg <jensg@openismus.com>2013-04-30 12:32:05 +0200
commitb8ef0328dd9a2771822be169c6ced8b8b16d9fb3 (patch)
tree9bc67ab354dc386008edec399c63f9873c10ce6b /tests
parenta68c54abc946e60c70514299a071090ad408bff0 (diff)
downloadrygel-b8ef0328dd9a2771822be169c6ced8b8b16d9fb3.tar.gz
test: Drop racy double-freeze check
Diffstat (limited to 'tests')
-rw-r--r--tests/rygel-media-engine-test.vala59
1 files changed, 0 insertions, 59 deletions
diff --git a/tests/rygel-media-engine-test.vala b/tests/rygel-media-engine-test.vala
index 02aeaaaa..04148d95 100644
--- a/tests/rygel-media-engine-test.vala
+++ b/tests/rygel-media-engine-test.vala
@@ -329,64 +329,6 @@ public class Rygel.DataSourceTest : Object {
source = null;
}
- // Check that calling freeze multiple times only needs one thaw to get the
- // data again
- private void test_multiple_freeze () {
- debug ("test_multiple_freeze");
-
- try {
- if (MetaConfig.get_default ().get_media_engine () ==
- "librygel-media-engine-gst.so") {
- message ("Skipping double-freeze test for gst engine.");
-
- return;
- }
- } catch (Error error) {
- // Config should be set and valid here. If not, something is quite
- // wrong in the test.
- assert_not_reached ();
- }
-
- var source = MediaEngine.get_default ().create_data_source
- (this.test_data_file.get_uri ());
- // Sources should support file:// urls
- assert (source != null);
- var available_id = source.data_available.connect ( () => {
- assert_not_reached ();
- });
-
- try {
- source.start (null);
- } catch (GLib.Error error) {
- assert_not_reached ();
- }
-
- source.freeze ();
- source.freeze ();
- var loop = new MainLoop (null, false);
-
- Timeout.add_seconds (5, () => {
- loop.quit ();
-
- return false;
- });
-
- loop.run ();
- source.disconnect (available_id);
- source.data_available.connect ( () => {
- loop.quit ();
- });
-
- var timeout_id = Timeout.add_seconds (5, () => {
- assert_not_reached ();
- });
-
- source.thaw ();
- loop.run ();
- Source.remove (timeout_id);
- source.stop ();
- }
-
// Check that it is possible to call stop() when the source is frozen and
// still get a done() signal
private void test_freeze_stop () {
@@ -469,7 +411,6 @@ public class Rygel.DataSourceTest : Object {
this.test_simple_streaming ();
this.test_byte_range_request ();
this.test_stop_start ();
- this.test_multiple_freeze ();
this.test_freeze_stop ();
this.test_parallel_streaming ();