texinfo-commits
[Top][All Lists]
Advanced

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

branch release/7.1 updated: Info tests timeout


From: Gavin D. Smith
Subject: branch release/7.1 updated: Info tests timeout
Date: Mon, 17 Jun 2024 13:10:54 -0400

This is an automated email from the git hooks/post-receive script.

gavin pushed a commit to branch release/7.1
in repository texinfo.

The following commit(s) were added to refs/heads/release/7.1 by this push:
     new f5864d1883 Info tests timeout
f5864d1883 is described below

commit f5864d1883ac4e63542d6629fe773cf8fedd8bb5
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Mon Jun 17 18:09:49 2024 +0100

    Info tests timeout
    
    * info/t/Init-test.inc (TEXINFO_INFO_TESTS_TIMEOUT, run_ginfo):
    Use environment variable to allow changing tests timeout
    from the environment.  Increase default timeout from 5 to 10
    seconds. This is to support running the tests on slow systems,
    such as under CPU emulation.  Report of test timeouts from Nelson.
---
 ChangeLog            | 10 ++++++++++
 info/t/Init-test.inc |  5 ++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 4680e21105..4a50bad80c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2024-06-17  Gavin Smith <gavinsmith0123@gmail.com>
+
+       Info tests timeout
+
+       * info/t/Init-test.inc (TEXINFO_INFO_TESTS_TIMEOUT, run_ginfo):
+       Use environment variable to allow changing tests timeout
+       from the environment.  Increase default timeout from 5 to 10
+       seconds. This is to support running the tests on slow systems,
+       such as under CPU emulation.  Report of test timeouts from Nelson.
+
 2024-06-10  Bruno Haible  <bruno@clisp.org>
 
        man: Add support for VPATH builds with OpenBSD 'make'.
diff --git a/info/t/Init-test.inc b/info/t/Init-test.inc
index f048d32f9c..ce20f280a8 100644
--- a/info/t/Init-test.inc
+++ b/info/t/Init-test.inc
@@ -168,6 +168,9 @@ init_interactive_test ()
   LIBC_FATAL_STDERR_=1; export LIBC_FATAL_STDERR
 }
 
+# test timeouts in seconds
+true ${TEXINFO_INFO_TESTS_TIMEOUT:=10}
+
 run_ginfo ()
 {
   init_interactive_test
@@ -177,6 +180,6 @@ run_ginfo ()
     exec $ginfo "$@" 0<>$pts_device 1<&0 ;
   ) &
   ginfo_pid=$!
-  (sleep 5 ; kill $ginfo_pid) &
+  (sleep $TEXINFO_INFO_TESTS_TIMEOUT ; kill $ginfo_pid) &
   killer_pid=$!
 }



reply via email to

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