[folks] EDS test-cases: be backwards-compatible with Evolution 3.8
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] EDS test-cases: be backwards-compatible with Evolution 3.8
- Date: Mon, 31 Mar 2014 23:47:45 +0000 (UTC)
commit dda8b6beb16a9b4ab70f2448c6a90fe0d9d019af
Author: Simon McVittie <simon mcvittie collabora co uk>
Date: Mon Mar 24 10:10:07 2014 +0000
EDS test-cases: be backwards-compatible with Evolution 3.8
The D-Bus API version changes between releases. We want all known
versions to be activatable.
https://bugzilla.gnome.org/show_bug.cgi?id=726980
NEWS | 1 +
tests/lib/eds/test-case.vala | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 78fcb22..60fbc54 100644
--- a/NEWS
+++ b/NEWS
@@ -17,6 +17,7 @@ Bugs fixed:
• Bug 724339 — vala.m4: don't keep generated files in git
• Bug 724809 — Fail to unset contact favorite
• Bug 722892 — Linking personas on Dummy backend does not work
+ • Bug 726980 — dependency on e-d-s 3.9 is often unnecessary
API changes:
• Add Individual.display_name
diff --git a/tests/lib/eds/test-case.vala b/tests/lib/eds/test-case.vala
index bc36d44..3db29f4 100644
--- a/tests/lib/eds/test-case.vala
+++ b/tests/lib/eds/test-case.vala
@@ -115,6 +115,24 @@ public class EdsTest.TestCase : Folks.TestCase
service_file_name, e2.message);
}
+ /* The same for Evolution 3.8. */
+ service_file_name =
+ Path.build_filename (this.transient_dir, "dbus-1", "services",
+ "evolution-source-registry-3-8.service");
+ service_file = ("[D-BUS Service]\n" +
+ "Name=org.gnome.evolution.dataserver.Sources1\n" +
+ "Exec=%s/evolution-source-registry\n").printf (libexec);
+
+ try
+ {
+ FileUtils.set_contents (service_file_name, service_file);
+ }
+ catch (FileError e2)
+ {
+ error ("Error creating D-Bus service file ‘%s’: %s",
+ service_file_name, e2.message);
+ }
+
/* Address book factory. */
service_file_name =
Path.build_filename (this.transient_dir, "dbus-1", "services",
@@ -132,6 +150,24 @@ public class EdsTest.TestCase : Folks.TestCase
error ("Error creating D-Bus service file ‘%s’: %s",
service_file_name, e3.message);
}
+
+ /* The same for Evolution 3.8. */
+ service_file_name =
+ Path.build_filename (this.transient_dir, "dbus-1", "services",
+ "evolution-addressbook-factory-3-8.service");
+ service_file = ("[D-BUS Service]\n" +
+ "Name=org.gnome.evolution.dataserver.AddressBook5\n" +
+ "Exec=%s/evolution-addressbook-factory\n").printf (libexec);
+
+ try
+ {
+ FileUtils.set_contents (service_file_name, service_file);
+ }
+ catch (FileError e3)
+ {
+ error ("Error creating D-Bus service file ‘%s’: %s",
+ service_file_name, e3.message);
+ }
}
public override void set_up ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]