[rygel] tests: Catch the exact error



commit 77ea4689710ddebe26879152374bf3857d62a5ed
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sat Mar 13 04:06:37 2010 +0200

    tests: Catch the exact error
    
    Latest valac spits a warning on this but thats OK since the warning is
    bogus and this is already fixed in vala git master.

 tests/rygel-http-item-uri-test.vala |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/tests/rygel-http-item-uri-test.vala b/tests/rygel-http-item-uri-test.vala
index 37c2f25..64708ae 100644
--- a/tests/rygel-http-item-uri-test.vala
+++ b/tests/rygel-http-item-uri-test.vala
@@ -65,9 +65,7 @@ private class Rygel.HTTPItemURITest : GLib.Object {
             var test = new HTTPItemURITest ();
 
             test.run ();
-        } catch (TestError error) {
-            // FIXME: We should catch the exact error but currently valac issues
-            // unreachable warning if we do so.
+        } catch (TestError.SKIP error) {
             return 77;
         } catch (Error error) {
             critical ("%s", error.message);



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