[tracker/sam/functional-tests-quiet: 7/11] Disable D-Bus service startup timeout



commit 2a0c474b39fcca3b92371be7f02ae3396c2e4a96
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]