[tracker/rss-enclosures] functional-tests: Fixed warnings from unhandled throws
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] functional-tests: Fixed warnings from unhandled throws
- Date: Wed, 24 Nov 2010 01:18:45 +0000 (UTC)
commit b9c7e526950e4e14864964ba3d2a317babf91bc1
Author: Martyn Russell <martyn lanedo com>
Date: Thu Aug 12 10:35:08 2010 +0100
functional-tests: Fixed warnings from unhandled throws
tests/functional-tests/shared-update-test.vala | 26 ++++++++++++++++++++---
1 files changed, 22 insertions(+), 4 deletions(-)
---
diff --git a/tests/functional-tests/shared-update-test.vala b/tests/functional-tests/shared-update-test.vala
index caa7bc4..f251e97 100644
--- a/tests/functional-tests/shared-update-test.vala
+++ b/tests/functional-tests/shared-update-test.vala
@@ -47,13 +47,19 @@ public class TestApp : GLib.Object {
} catch (Tracker.Sparql.Error ea) {
warning ("Couldn't update: %s", ea.message);
res = -1;
+ } catch (IOError eb) {
+ warning ("Couldn't update: %s", eb.message);
+ res = -1;
}
try {
cursor = con.query ("SELECT ?title WHERE { <test01> nie:title ?title }");
a = iter_cursor (cursor);
- } catch (Tracker.Sparql.Error eb) {
- warning ("Couldn't query: %s", eb.message);
+ } catch (Tracker.Sparql.Error ec) {
+ warning ("Couldn't query: %s", ec.message);
+ res = -1;
+ } catch (IOError ed) {
+ warning ("Couldn't update: %s", ed.message);
res = -1;
}
}
@@ -67,13 +73,19 @@ public class TestApp : GLib.Object {
} catch (Tracker.Sparql.Error ea) {
warning ("Couldn't update: %s", ea.message);
res = -1;
+ } catch (IOError eb) {
+ warning ("Couldn't update: %s", eb.message);
+ res = -1;
}
try {
cursor = con.query ("SELECT ?title WHERE { <test02> nie:title ?title }");
a = iter_cursor (cursor);
- } catch (Tracker.Sparql.Error eb) {
- warning ("Couldn't query: %s", eb.message);
+ } catch (Tracker.Sparql.Error ec) {
+ warning ("Couldn't query: %s", ec.message);
+ res = -1;
+ } catch (IOError ed) {
+ warning ("Couldn't update: %s", ed.message);
res = -1;
}
}
@@ -88,6 +100,9 @@ public class TestApp : GLib.Object {
} catch (Tracker.Sparql.Error ea) {
warning ("Couldn't update: %s", ea.message);
res = -1;
+ } catch (IOError eb) {
+ warning ("Couldn't update: %s", eb.message);
+ res = -1;
}
}
@@ -101,6 +116,9 @@ public class TestApp : GLib.Object {
} catch (Tracker.Sparql.Error ea) {
warning ("Couldn't update: %s", ea.message);
res = -1;
+ } catch (IOError eb) {
+ warning ("Couldn't update: %s", eb.message);
+ res = -1;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]