From: Philip Withnall Date: Wed, 20 Oct 2010 16:51:41 +0000 (+0100) Subject: Update log handlers in the test suite X-Git-Tag: FOLKS_0_3_2~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=edd974508d3d92172df91d892a7be73bfada138b;p=platform%2Fupstream%2Ffolks.git Update log handlers in the test suite 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 --- diff --git a/tests/telepathy/individual-properties.vala b/tests/telepathy/individual-properties.vala index a72cd5f..358bf1c 100644 --- a/tests/telepathy/individual-properties.vala +++ b/tests/telepathy/individual-properties.vala @@ -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 */ diff --git a/tests/telepathy/individual-retrieval.vala b/tests/telepathy/individual-retrieval.vala index a644608..438019c 100644 --- a/tests/telepathy/individual-retrieval.vala +++ b/tests/telepathy/individual-retrieval.vala @@ -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 added_individuals = new HashSet (); diff --git a/tests/telepathy/persona-store-capabilities.vala b/tests/telepathy/persona-store-capabilities.vala index 2599679..94060c8 100644 --- a/tests/telepathy/persona-store-capabilities.vala +++ b/tests/telepathy/persona-store-capabilities.vala @@ -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 ();