[rygel] tests: Catch another exception



commit 22c826e56c1d2fe82235bc0d9071799e644a3213
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Dec 6 14:53:06 2012 +0100

    tests: Catch another exception

 tests/rygel-http-response-test.vala |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/tests/rygel-http-response-test.vala b/tests/rygel-http-response-test.vala
index c87fc2c..b2bed07 100644
--- a/tests/rygel-http-response-test.vala
+++ b/tests/rygel-http-response-test.vala
@@ -377,7 +377,12 @@ internal class Rygel.TestDataSource : Rygel.DataSource, Object {
         }
 
         this.frozen = false;
-        this.start (null);
+
+        try {
+            this.start (null);
+        } catch (GLib.Error error) {
+            assert_not_reached ();
+        }
     }
 
     public void stop () {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]