[tracker/libtracker-sparql-porting: 34/34] functional-tests: Fixed warnings from unhandled throws



commit 39a57be9cda431305226afbecaba88b5e606ef1c
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]