guix-commits
[Top][All Lists]
Advanced

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

12/16: gnu: spdlog: Prevent test failure on busy machines.


From: guix-commits
Subject: 12/16: gnu: spdlog: Prevent test failure on busy machines.
Date: Tue, 9 Aug 2022 18:29:48 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit 131e09b95a85a826e539b7a6a536e217e0cdcf7c
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Aug 9 22:20:31 2022 +0200

    gnu: spdlog: Prevent test failure on busy machines.
    
    * gnu/packages/logging.scm (spdlog)[source](modules, snippet): New fields.
---
 gnu/packages/logging.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/logging.scm b/gnu/packages/logging.scm
index 9e7cfe613a..099b6a9509 100644
--- a/gnu/packages/logging.scm
+++ b/gnu/packages/logging.scm
@@ -220,7 +220,14 @@ output in multiple windows in a terminal.")
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "02xz017ba9fssm1rp1fcfld7h79awbr6fqai9dxaqp02akp3davk"))))
+        (base32 "02xz017ba9fssm1rp1fcfld7h79awbr6fqai9dxaqp02akp3davk"))
+       (modules '((guix build utils)))
+       (snippet
+        ;; Prevent race on busy hardware.  Remove snippet for versions
+        ;; > 1.10.0; see <https://github.com/gabime/spdlog/issues/2363>.
+        '(substitute* "tests/test_misc.cpp"
+           (("spdlog::details::os::sleep_for_millis\\(10\\)")
+            "spdlog::details::os::sleep_for_millis(100)")))))
     (build-system cmake-build-system)
     ;; TODO run benchmark. Currently not possible, as adding
     ;; (gnu packages benchmark) forms a dependency cycle



reply via email to

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