texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: Info tests timeout


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

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

gavin pushed a commit to branch master
in repository texinfo.

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

commit d60a03b2a062ec3fe1d0bfdf547c6b6d2f05566b
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 19221bb427..500983af85 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-17  Patrice Dumas  <pertusus@free.fr>
 
        * tp/maintain/regenerate_C_options_info.pl: remove a spurious ; output
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]