emacs-diffs
[Top][All Lists]
Advanced

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

master 96e371b: cperl-mode: Make timeout test more robust


From: Stefan Kangas
Subject: master 96e371b: cperl-mode: Make timeout test more robust
Date: Thu, 29 Oct 2020 17:45:11 -0400 (EDT)

branch: master
commit 96e371b44aa7aab13c559a908b48711364264213
Author: Harald Jörg <haj@posteo.de>
Commit: Stefan Kangas <stefan@marxist.se>

    cperl-mode: Make timeout test more robust
    
    * test/lisp/progmodes/cperl-mode-tests.el
    (cperl-mode-test-bug-10483): Increase the timeout to 2 seconds
    and mark the test as expensive.  Also, suppress it for Emacs
    versions below 28, where the test times out though the function
    works in manual tests.  (Bug#44317)
---
 test/lisp/progmodes/cperl-mode-tests.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/lisp/progmodes/cperl-mode-tests.el 
b/test/lisp/progmodes/cperl-mode-tests.el
index e67678c..9b486ae 100644
--- a/test/lisp/progmodes/cperl-mode-tests.el
+++ b/test/lisp/progmodes/cperl-mode-tests.el
@@ -108,8 +108,10 @@ This verifies that indenting a piece of code that ends in 
a paren
 without a statement terminator on the same line does not loop
 forever.  The test starts an asynchronous Emacs batch process
 under timeout control."
+  :tags '(:expensive-test)
   (interactive)
   (skip-unless (not (getenv "EMACS_HYDRA_CI"))) ; FIXME times out
+  (skip-unless (not (< emacs-major-version 28))) ; times out in older Emacsen
   (let* ((emacs (concat invocation-directory invocation-name))
          (test-function 'cperl-mode-test--run-bug-10483)
          (test-function-name (symbol-name test-function))
@@ -118,7 +120,7 @@ under timeout control."
          (process-connection-type nil)
          runner)
     (with-temp-buffer
-      (with-timeout (1
+      (with-timeout (2
                      (delete-process runner)
                      (setq ran-out-of-time t))
         (setq runner (start-process "speedy"



reply via email to

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