[tracker/class-signal: 21/50] functional-tests: class-signal: Allow tweaking of the data of the property



commit cffa5ec71b6bba8360d4f75e79d5aadacb5f801b
Author: Philip Van Hoof <philip codeminded be>
Date:   Fri Aug 20 14:13:47 2010 +0200

    functional-tests: class-signal: Allow tweaking of the data of the property

 tests/functional-tests/class-signal-test.vala |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/tests/functional-tests/class-signal-test.vala b/tests/functional-tests/class-signal-test.vala
index ab2c687..5865404 100644
--- a/tests/functional-tests/class-signal-test.vala
+++ b/tests/functional-tests/class-signal-test.vala
@@ -20,7 +20,8 @@
 using Tracker;
 using Tracker.Sparql;
 
-int max_signals = 1000;
+const int max_signals = 1000;
+const string title_data = "title";
 
 struct Event {
 	int subject_id;
@@ -149,7 +150,7 @@ public class TestApp {
 		int i;
 
 		for (i = 0; i <= max_signals; i++) {
-			string upqry = "DELETE { <%d> a rdfs:Resource } INSERT { <%d> a nmm:MusicPiece ; nie:title 'title %d' }".printf(i, i, i);
+			string upqry = "DELETE { <%d> a rdfs:Resource } INSERT { <%d> a nmm:MusicPiece ; nie:title '%s %d' }".printf(i, i, title_data, i);
 
 			resources_object.sparql_update_async (upqry);
 



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