[tracker/wal: 34/53] functional-tests: Fixed warnings from unhandled throws
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wal: 34/53] functional-tests: Fixed warnings from unhandled throws
- Date: Mon, 16 Aug 2010 10:21:33 +0000 (UTC)
commit 244173fa35bdd46688e72980c589a2ecc632b91d
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]