guix-commits
[Top][All Lists]
Advanced

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

[shepherd] 01/01: tests: Mitigate timing issue.


From: Ludovic Courtès
Subject: [shepherd] 01/01: tests: Mitigate timing issue.
Date: Thu, 31 Jan 2019 11:19:12 -0500 (EST)

civodul pushed a commit to branch master
in repository shepherd.

commit 5aeae295e011874682f1deb01e78bdd45cc918f6
Author: Ludovic Courtès <address@hidden>
Date:   Thu Jan 31 16:22:50 2019 +0100

    tests: Mitigate timing issue.
    
    Partly fixes <https://bugs.gnu.org/30299>.
    Reported by Mark H Weaver <address@hidden>
    and Andreas Enge <address@hidden>.
    
    * tests/pid-file.sh: Set #:pid-file-timeout to 6 seconds.
---
 tests/pid-file.sh | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/tests/pid-file.sh b/tests/pid-file.sh
index d1be416..d76ec91 100644
--- a/tests/pid-file.sh
+++ b/tests/pid-file.sh
@@ -1,5 +1,5 @@
 # GNU Shepherd --- Test the #:pid-file option of 'make-forkexec-constructor'.
-# Copyright © 2016 Ludovic Courtès <address@hidden>
+# Copyright © 2016, 2019 Ludovic Courtès <address@hidden>
 #
 # This file is part of the GNU Shepherd.
 #
@@ -43,7 +43,12 @@ cat > "$conf"<<EOF
    #:provides '(test)
    #:start (make-forkexec-constructor %command
                                       #:pid-file "/does-not-exist"
-                                      #:pid-file-timeout 2)
+
+                                      ;; Low-end ARMv7 machines are
+                                      ;; slow enough that creating
+                                      ;; $service_pid could take
+                                      ;; up to 4 seconds or so.
+                                      #:pid-file-timeout 6)
    #:stop  (make-kill-destructor)
    #:respawn? #f))
 EOF



reply via email to

[Prev in Thread] Current Thread [Next in Thread]