GNU bug report logs - #79056
tab-bar-tests-quit-restore-window sometimes fails in *compilation* buffer

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Sat, 19 Jul 2025 22:50:02 UTC

Severity: normal

Full log


Message #11 received at 79056 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Juri Linkov <juri <at> linkov.net>
Cc: 79056 <at> debbugs.gnu.org
Subject: Re: bug#79056: tab-bar-tests-quit-restore-window sometimes fails in
 *compilation* buffer
Date: Sun, 20 Jul 2025 17:07:08 -0700
On 2025-07-19 23:56, Juri Linkov wrote:
> Maybe tuning frame parameters would help here:
> 
>    (let* ((frame-params (when noninteractive
>                           '((window-system . nil)
>                             (tty-type . "linux"))))
> 
> I tried different tty-type values such as "ansi", "dumb", "vt100", "xterm"
> with different effects.

I don't know what the test is trying to do, but when it's noninteractive 
why does the test access /dev/tty or need TERM? /dev/tty and TERM 
ordinarily ought to be irrelevant and unused in a noninteractive test.

How about something like the following patch?

diff --git a/test/lisp/tab-bar-tests.el b/test/lisp/tab-bar-tests.el
index 257f6bd37d3..9529f43853b 100644
--- a/test/lisp/tab-bar-tests.el
+++ b/test/lisp/tab-bar-tests.el
@@ -52,15 +52,7 @@ tab-bar-tests-close-other-tabs-with-arg
   (tab-bar-tabs-set nil))

 (ert-deftest tab-bar-tests-quit-restore-window ()
-  (skip-when (pcase system-type
-               ;; Skip test on MS-Windows in batch mode, since terminal
-               ;; frames cannot be created in that case.
-               ('windows-nt noninteractive)
-               ;; Emba runs the container without "--tty"
-               ;; (the environment variable "TERM" is nil), and this
-               ;; test fails with '(error "Could not open file: 
/dev/tty")'.
-               ;; Therefore skip it unless it can use '(tty-type . 
"linux")'.
-               ('gnu/linux (null (getenv "TERM")))))
+  (skip-when (or noninteractive (null (getenv "TERM"))))

   (let* ((frame-params (when noninteractive
                          '((window-system . nil)





This bug report was last modified 20 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.