[tracker/sam/tracker-2.3-developer-experience: 11/45] Disable D-Bus service startup timeout



commit 0171a4ef5486f38e04041c59d2c7e3cce34e1985
Author: Sam Thursfield <sam afuera me uk>
Date:   Thu Aug 29 17:32:35 2019 +0300

    Disable D-Bus service startup timeout
    
    This timeout interferes with debugging. If you attach GDB to a daemon
    as it starts up and step through the code, the timeout can cause
    dbus-daemon to kill the process that you're debugging.
    
    We can rely on `meson test` to kill tests that actually don't finish,
    and the `meson test` timeout can be conveniently increased with the
    `--timeout-multiplier` commandline option.

 tests/test-bus.conf.in | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/tests/test-bus.conf.in b/tests/test-bus.conf.in
index 2f4b2ef1b..f2df619e3 100644
--- a/tests/test-bus.conf.in
+++ b/tests/test-bus.conf.in
@@ -9,6 +9,12 @@
   <servicedir>@abs_top_builddir@/tests/services/</servicedir>
   <standard_session_servicedirs/>
 
+  <!-- This timeout is annoying when the service is being debugged. We rely on
+       the test harness to stop the test and kill the daemon if it does
+       get stuck.
+  -->
+  <limit name="service_start_timeout">1000000</limit>
+
   <policy context="default">
     <!-- Allow everything to be sent -->
     <allow send_destination="*"/>
@@ -17,5 +23,4 @@
     <!-- Allow anyone to own anything -->
     <allow own="*"/>
   </policy>
-
 </busconfig>


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