Update log handlers in the test suite
authorPhilip Withnall <philip@tecnocode.co.uk>
Wed, 20 Oct 2010 16:51:41 +0000 (17:51 +0100)
committerTravis Reitter <travis.reitter@collabora.co.uk>
Thu, 4 Nov 2010 16:30:09 +0000 (09:30 -0700)
Due to string changes in the rest of libfolks, the log handlers in the test
suite need changing to fix the test suite. Helps: bgo#628883

tests/telepathy/individual-properties.vala
tests/telepathy/individual-retrieval.vala
tests/telepathy/persona-store-capabilities.vala

index a72cd5f..358bf1c 100644 (file)
@@ -41,9 +41,8 @@ public class IndividualPropertiesTests : Folks.TestCase
       /* Ignore the error caused by not running the logger */
       Test.log_set_fatal_handler ((d, l, m) =>
         {
-          return !m.has_suffix ("couldn't get list of favourite contacts: " +
-              "The name org.freedesktop.Telepathy.Logger was not provided by " +
-              "any .service files");
+          return !m.has_suffix ("The name org.freedesktop.Telepathy.Logger " +
+              "was not provided by any .service files");
         });
 
       /* Set up the aggregator */
@@ -97,9 +96,8 @@ public class IndividualPropertiesTests : Folks.TestCase
       /* Ignore the error caused by not running the logger */
       Test.log_set_fatal_handler ((d, l, m) =>
         {
-          return !m.has_suffix ("couldn't get list of favourite contacts: " +
-              "The name org.freedesktop.Telepathy.Logger was not provided by " +
-              "any .service files");
+          return !m.has_suffix ("The name org.freedesktop.Telepathy.Logger " +
+              "was not provided by any .service files");
         });
 
       /* Set up the aggregator */
@@ -168,9 +166,8 @@ public class IndividualPropertiesTests : Folks.TestCase
       /* Ignore the error caused by not running the logger */
       Test.log_set_fatal_handler ((d, l, m) =>
         {
-          return !m.has_suffix ("couldn't get list of favourite contacts: " +
-              "The name org.freedesktop.Telepathy.Logger was not provided by " +
-              "any .service files");
+          return !m.has_suffix ("The name org.freedesktop.Telepathy.Logger " +
+              "was not provided by any .service files");
         });
 
       /* Set up the aggregator */
index a644608..438019c 100644 (file)
@@ -51,9 +51,8 @@ public class IndividualRetrievalTests : Folks.TestCase
       /* Ignore the error caused by not running the logger */
       Test.log_set_fatal_handler ((d, l, m) =>
         {
-          return !m.has_suffix ("couldn't get list of favourite contacts: " +
-              "The name org.freedesktop.Telepathy.Logger was not provided by " +
-              "any .service files");
+          return !m.has_suffix ("The name org.freedesktop.Telepathy.Logger " +
+              "was not provided by any .service files");
         });
 
       /* work on a copy so we can mangle it */
@@ -115,9 +114,8 @@ public class IndividualRetrievalTests : Folks.TestCase
       /* Ignore the error caused by not running the logger */
       Test.log_set_fatal_handler ((d, l, m) =>
         {
-          return !m.has_suffix ("couldn't get list of favourite contacts: " +
-              "The name org.freedesktop.Telepathy.Logger was not provided by " +
-              "any .service files");
+          return !m.has_suffix ("The name org.freedesktop.Telepathy.Logger " +
+              "was not provided by any .service files");
         });
 
       HashSet<string> added_individuals = new HashSet<string> ();
index 2599679..94060c8 100644 (file)
@@ -39,9 +39,8 @@ public class PersonaStoreCapabilitiesTests : Folks.TestCase
       /* Ignore the error caused by not running the logger */
       Test.log_set_fatal_handler ((d, l, m) =>
         {
-          return !m.has_suffix ("couldn't get list of favourite contacts: " +
-              "The name org.freedesktop.Telepathy.Logger was not provided by " +
-              "any .service files");
+          return !m.has_suffix ("The name org.freedesktop.Telepathy.Logger " +
+              "was not provided by any .service files");
         });
 
       var backend_store = BackendStore.dup ();