From unknown Thu Aug 14 18:32:09 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#79056 <79056@debbugs.gnu.org> To: bug#79056 <79056@debbugs.gnu.org> Subject: Status: tab-bar-tests-quit-restore-window sometimes fails in *compilation* buffer Reply-To: bug#79056 <79056@debbugs.gnu.org> Date: Fri, 15 Aug 2025 01:32:09 +0000 retitle 79056 tab-bar-tests-quit-restore-window sometimes fails in *compila= tion* buffer reassign 79056 emacs submitter 79056 Paul Eggert severity 79056 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 19 18:49:08 2025 Received: (at submit) by debbugs.gnu.org; 19 Jul 2025 22:49:08 +0000 Received: from localhost ([127.0.0.1]:45783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1udGMd-00076A-LP for submit@debbugs.gnu.org; Sat, 19 Jul 2025 18:49:08 -0400 Received: from lists.gnu.org ([2001:470:142::17]:43116) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1udGMa-00075E-NP for submit@debbugs.gnu.org; Sat, 19 Jul 2025 18:49:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1udGMP-0001d3-GO for bug-gnu-emacs@gnu.org; Sat, 19 Jul 2025 18:48:53 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1udGML-0006gs-Fp for bug-gnu-emacs@gnu.org; Sat, 19 Jul 2025 18:48:51 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 50F833C0149D7 for ; Sat, 19 Jul 2025 15:48:47 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id Tjo_LpQpDyae for ; Sat, 19 Jul 2025 15:48:47 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 29BAC3C0149E2 for ; Sat, 19 Jul 2025 15:48:47 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 29BAC3C0149E2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1752965327; bh=2jVPm3IDYnluPeypqN5FJK0VVShEfhG3gpUA3TpeLI8=; h=Message-ID:Date:MIME-Version:To:From; b=EmaxuG6PqsnJ/0oiPytRh9clVQPWYdrhYvQGTZKqjT1qomKUQ/OSkmV2BvUmpqx9Y W2crfbvE99fq4ABGkln0d7RBU2TKk16icHxqV3wt2btwEkck9uoSqRJpQHJe8AgpDQ n43PlynieDt7HmU7cZereD20rShT4k5OmtJoZn8bDy8cUZgGaYvEgLas6lbNZg+Kit gUIZEYrgwZ7aNrB1zwU916SJ06sCB4849h7swHoUoUyRJB7cK7lpNPiPWRvyOD1umw udWrDQDNnSyDNYqir779K+BMPld5Iip1nw5BbG1vmy5tCraKsZfr6/3a39+rE3Czcq Btu9oA3kw5rbA== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id dUnWcXPV0Tfj for ; Sat, 19 Jul 2025 15:48:47 -0700 (PDT) Received: from penguin.cs.ucla.edu (unknown [47.154.30.222]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 0CEEF3C0149D7 for ; Sat, 19 Jul 2025 15:48:47 -0700 (PDT) Message-ID: <03d8becb-a6a1-425c-a727-e5910af739a5@cs.ucla.edu> Date: Sat, 19 Jul 2025 15:48:44 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Emacs bug reports and feature requests From: Paul Eggert Subject: tab-bar-tests-quit-restore-window sometimes fails in *compilation* buffer Organization: UCLA Computer Science Department Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=131.179.128.66; envelope-from=eggert@cs.ucla.edu; helo=mail.cs.ucla.edu X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) This is a timing related bug. To try to reproduce it on Ubuntu 25.04=20 x86-64, I start up Emacs, then build Emacs from master (commit=20 291cd2d3419c7be20200db3f0ee5936661ab79f2), then cd to the test=20 subdirectory, then run: M-x compile RET make check LOGFILES=3Dlisp/tab-bar-tests.log RET Sometimes it works, although it outputs a stray=20 "^[[H^[[J^[[H^[[J^[[H^[[J^[[H^[[J" string (sans trailing newline) to=20 stdout, where "^[" stands for ESC. This string is a minor bug in the=20 test: it shouldn't output junk to stdout. Sometimes it fails, resulting in the following *compilation* buffer,=20 where "^[" again represents an ESC character. The test always seems to work if I run it in a *shell* window, so=20 apparently it has something with whether Emacs has a controlling tty, or=20 something like that. =E2=80=93-*- mode: compilation; default-directory:=20 "~/src/gnu/emacs/static-checking/test/" -*- Compilation started at Sat Jul 19 15:36:46 make check LOGFILES=3Dlisp/tab-bar-tests.log rm -f ./*.tmp make[1]: Entering directory=20 '/home/eggert/src/gnu/emacs/static-checking/test' make[2]: Entering directory=20 '/home/eggert/src/gnu/emacs/static-checking/test' GEN lisp/tab-bar-tests.log ^[[H^[[JRunning 3 tests (2025-07-19 15:36:46-0700, selector =E2=80=98(not= (or=20 (tag :expensive-test) (tag :unstable) (tag :nativecomp)))=E2=80=99) Renamed tab to =E2=80=991=E2=80=99 No more closed tabs to undo passed 1/3 tab-bar-tests-close-other-tabs-default (0.001130 sec) No more closed tabs to undo No more closed tabs to undo No more closed tabs to undo No more closed tabs to undo No more closed tabs to undo passed 2/3 tab-bar-tests-close-other-tabs-with-arg (0.001069 sec) Display next command buffer in a new frame... Composing main Info directory... Composing main Info directory...done Test tab-bar-tests-quit-restore-window backtrace: signal(ert-test-failed (((should (eq (length (window-list)) 2)) :for ert-fail(((should (eq (length (window-list)) 2)) :form (eq 1 2) :val #f(compiled-function () #)() #f(compiled-function () #)() handler-bind-1(#f(compiled-function () # ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test ert-run-test(#s(ert-test :name tab-bar-tests-quit-restore-window :do ert-run-or-rerun-test(#s(ert--stats :selector (not (or ... ... ...)) ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :n ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable) ( ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) ( command-line-1(("-L" ":." "-l" "ert" "--eval" "(setq treesit-extra-l command-line() normal-top-level() Test tab-bar-tests-quit-restore-window condition: (ert-test-failed ((should (eq (length ...) 2)) :form (eq 1 2) :value nil)) FAILED 3/3 tab-bar-tests-quit-restore-window (0.017622 sec) at=20 lisp/tab-bar-tests.el:54 Ran 3 tests, 2 results as expected, 1 unexpected (2025-07-19=20 15:36:46-0700, 0.062801 sec) 1 unexpected results: FAILED tab-bar-tests-quit-restore-window make[2]: *** [Makefile:185: lisp/tab-bar-tests.log] Error 1 make[2]: Leaving directory '/home/eggert/src/gnu/emacs/static-checking/te= st' make[1]: [Makefile:348: check-doit] Error 2 (ignored) SUMMARY OF TEST RESULTS ----------------------- Files examined: 1 Ran 3 tests, 2 results as expected, 1 unexpected, 0 skipped 1 files contained unexpected results: lisp/tab-bar-tests.log make[1]: *** [Makefile:349: check-doit] Error 1 make[1]: Leaving directory '/home/eggert/src/gnu/emacs/static-checking/te= st' make: *** [Makefile:315: check] Error 2 Compilation exited abnormally with code 2 at Sat Jul 19 15:36:47,=20 duration 1.37 s From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 20 03:09:49 2025 Received: (at 79056) by debbugs.gnu.org; 20 Jul 2025 07:09:49 +0000 Received: from localhost ([127.0.0.1]:48036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1udOBA-0004wm-NS for submit@debbugs.gnu.org; Sun, 20 Jul 2025 03:09:48 -0400 Received: from mout-y-111.mailbox.org ([2001:67c:2050:103:465::111]:54862) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1udOB7-0004wF-Sa for 79056@debbugs.gnu.org; Sun, 20 Jul 2025 03:09:46 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-y-111.mailbox.org (Postfix) with ESMTPS id 4blF5W39Trz9xxT; Sun, 20 Jul 2025 09:09:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1752995375; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Cdyn7buqgIX8Ldov2nXQPDF4ZmPdo9nJFIpYP1aXS10=; b=S3rswSb0VjmAKCjamU8oUm3Lwshjp4hqueiia9aMvYDtBKj/w1S5l9bG7mZ/aEjX5E48W9 ZRRqbytV2jVcfl+OTzC6nvIq1Eq6J78Om8eipmd62/SR9kIdTIwAW7cKtOSkDVqX2DUI8Q KlyV0tEHcMr9adOO94aGhyqvZyVXZmvwo0ipShJGcWKzEnj5TpjKzNv02GehlA49gHFoPk zaW9evrNkPVI4g/RFyJ/0wbYYZN3OF6DR5p2hRb5Mbfom+HQxBsvE7kDXXpyYGNgL/8Mb9 3fk4tIduR1WUBfWeAuoYy1fWUR1lwblPYxIpJBq6SACFiP2Bxa+dqVx90zrWeA== From: Juri Linkov To: Paul Eggert Subject: Re: bug#79056: tab-bar-tests-quit-restore-window sometimes fails in *compilation* buffer In-Reply-To: <03d8becb-a6a1-425c-a727-e5910af739a5@cs.ucla.edu> Organization: LINKOV.NET References: <03d8becb-a6a1-425c-a727-e5910af739a5@cs.ucla.edu> Date: Sun, 20 Jul 2025 09:56:41 +0300 Message-ID: <878qkjjq7y.fsf@mail.linkov.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79056 Cc: 79056@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > This is a timing related bug. To try to reproduce it on Ubuntu 25.04 > x86-64, I start up Emacs, then build Emacs from master (commit > 291cd2d3419c7be20200db3f0ee5936661ab79f2), then cd to the test > subdirectory, then run: > > M-x compile RET make check LOGFILES=lisp/tab-bar-tests.log RET > > Sometimes it works, although it outputs a stray > "^[[H^[[J^[[H^[[J^[[H^[[J^[[H^[[J" string (sans trailing newline) to > stdout, where "^[" stands for ESC. This string is a minor bug in the test: > it shouldn't output junk to stdout. > > Sometimes it fails, resulting in the following *compilation* buffer, where > "^[" again represents an ESC character. > > The test always seems to work if I run it in a *shell* window, so > apparently it has something with whether Emacs has a controlling tty, or > something like that. 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 20 20:07:19 2025 Received: (at 79056) by debbugs.gnu.org; 21 Jul 2025 00:07:19 +0000 Received: from localhost ([127.0.0.1]:53089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ude3q-0007an-Qx for submit@debbugs.gnu.org; Sun, 20 Jul 2025 20:07:19 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:57152) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ude3n-0007aM-Iu for 79056@debbugs.gnu.org; Sun, 20 Jul 2025 20:07:16 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 2F4F53C0149CB; Sun, 20 Jul 2025 17:07:09 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id zNpcjqhoY7j7; Sun, 20 Jul 2025 17:07:09 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 07D353C0149D0; Sun, 20 Jul 2025 17:07:09 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 07D353C0149D0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1753056429; bh=nyBfL+KBGzAKJcju3/92P+FUkbopfi/dSpoKDgegPcQ=; h=Message-ID:Date:MIME-Version:To:From; b=h1vn4L9PH2b4scQXMm/QEgiSgSr4Yhbti2AlMuWgZk+LcwpXubWU23rF9/PR8Keg3 nsPPt6e7q7uTViVuOubNF207l5vh9wHAjGXPIoiFDxi93rSHIlDcPmpOBNsUxrwRzz VLHrdwX+LFPYUSuGO1MPbRJBx2flV+CPN0zFe2gsqQ8WWWFjy1owhNqRykTPgENx0b +dpiHcJl6lmuLHJ4jCmcG6RQEE+0QfKynb16+vIV3+VVAq+/+znRU2AVZbxvKbyprM H1KLD43z/Pmdv9LhkU/NBwxkMy0pUlfLL0SxNpMMV61rjxDWFcDvhhrtc7m5nEygua df3k2ughoZxWg== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id WxlicLufl84I; Sun, 20 Jul 2025 17:07:08 -0700 (PDT) Received: from penguin.cs.ucla.edu (47-154-30-222.fdr01.snmn.ca.ip.frontiernet.net [47.154.30.222]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id DC2943C0149CB; Sun, 20 Jul 2025 17:07:08 -0700 (PDT) Message-ID: <9abd8696-cf4d-4a04-ad2b-a801b34531df@cs.ucla.edu> Date: Sun, 20 Jul 2025 17:07:08 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#79056: tab-bar-tests-quit-restore-window sometimes fails in *compilation* buffer To: Juri Linkov References: <03d8becb-a6a1-425c-a727-e5910af739a5@cs.ucla.edu> <878qkjjq7y.fsf@mail.linkov.net> Content-Language: en-US From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: <878qkjjq7y.fsf@mail.linkov.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79056 Cc: 79056@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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) From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 22 02:52:44 2025 Received: (at 79056) by debbugs.gnu.org; 22 Jul 2025 06:52:44 +0000 Received: from localhost ([127.0.0.1]:34099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ue6rj-0005Ln-Nl for submit@debbugs.gnu.org; Tue, 22 Jul 2025 02:52:44 -0400 Received: from mout-y-209.mailbox.org ([91.198.250.237]:51290) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ue6rg-0005L5-BK for 79056@debbugs.gnu.org; Tue, 22 Jul 2025 02:52:41 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-y-209.mailbox.org (Postfix) with ESMTPS id 4bmScw1f76zB0Sl; Tue, 22 Jul 2025 08:52:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1753167152; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=KqB2gyKRkEmurxpYxDBm3Wo5z+c4fqvVkepJ7CNXbxM=; b=qqgdwqFsDWxodLvEDREMFcjFQk+HCmVJheS1708Ag04vl4R90Qw+L/owdOwkbKKKBBjSYx JAisGMGi5vzuzkCDUQJDXdxq35nTDqgiNjs9b64XFGxB9/LRseQ30JXmN8jm/lCr479NVv HgSNFaISoQB9E/HC/+2E6SpmppeKTEGZ3qCRK7c6A7I/rKJZOD8A2PjT3ovrBqI66iCfMk SoY6YWYpYQBV5177UP2LEa3/yxHdvlnfgQxI1QBhnRjKOKusWJJSO1fajgLyAetOVSbdnS PMwlrgTgWKPfW2f4vY6N7eXmLTtyPebfPzbP6BbXknW2BvbK9NxE9oSKqp1B5g== From: Juri Linkov To: Paul Eggert Subject: Re: bug#79056: tab-bar-tests-quit-restore-window sometimes fails in *compilation* buffer In-Reply-To: <9abd8696-cf4d-4a04-ad2b-a801b34531df@cs.ucla.edu> Organization: LINKOV.NET References: <03d8becb-a6a1-425c-a727-e5910af739a5@cs.ucla.edu> <878qkjjq7y.fsf@mail.linkov.net> <9abd8696-cf4d-4a04-ad2b-a801b34531df@cs.ucla.edu> Date: Tue, 22 Jul 2025 09:38:35 +0300 Message-ID: <87freoep0c.fsf@mail.linkov.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79056 Cc: 79056@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > 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? > > @@ -52,15 +52,7 @@ tab-bar-tests-close-other-tabs-with-arg > - (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")))) If there is no reliable way to create terminal frames in noninteractive tests, then probably such tests should be skipped by default to be used only manually when someone will remember to run them periodically. PS: Many web browsers support headless mode that is used in test automation. I wonder how it would be possible to implement headless mode in Emacs? From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 22 09:08:06 2025 Received: (at 79056) by debbugs.gnu.org; 22 Jul 2025 13:08:06 +0000 Received: from localhost ([127.0.0.1]:36298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ueCiz-00077h-TE for submit@debbugs.gnu.org; Tue, 22 Jul 2025 09:08:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47824) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ueCix-000773-7f for 79056@debbugs.gnu.org; Tue, 22 Jul 2025 09:08:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ueCiq-00067A-FD; Tue, 22 Jul 2025 09:07:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=NfGosz9eqfiByLG7zRJOAC438gKh79wD5NxhCXaWzWA=; b=Sk8sEm4K6l1Y fsP6YBxBf2qlA1QiwlzCGeoATaryDL61w0DrIBrXQbEvks+WxOtAGaIzHvj7UhCTGFzO6XNaWU6AX WDT2Pve5wVtsDFvv8COFHV01nTBRlT6vPHv6Y9r2PwA6XzIkyC8C2zBzxTXLZOJt/l3OYtyWNASSy aILwCHsh9PSUyFv/VfINVuNjkJ6IAxnS+EbSoj8PVWrgcaURjBXBVSBfJKu65OwddGvPLrnktMorS 9Y8im56A4Gy02kgPHhWVs36ZOCdMJ8TWUMiYH/RyWFOz5XT5vzJzuz+6nn7jyOY4AozotEIVy6RcM 0HA3bNvGjMESfn326OJWpg==; Date: Tue, 22 Jul 2025 16:07:50 +0300 Message-Id: <86ecu89xw9.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-Reply-To: <87freoep0c.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 22 Jul 2025 09:38:35 +0300) Subject: Re: bug#79056: tab-bar-tests-quit-restore-window sometimes fails in *compilation* buffer References: <03d8becb-a6a1-425c-a727-e5910af739a5@cs.ucla.edu> <878qkjjq7y.fsf@mail.linkov.net> <9abd8696-cf4d-4a04-ad2b-a801b34531df@cs.ucla.edu> <87freoep0c.fsf@mail.linkov.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79056 Cc: 79056@debbugs.gnu.org, eggert@cs.ucla.edu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: 79056@debbugs.gnu.org > From: Juri Linkov > Date: Tue, 22 Jul 2025 09:38:35 +0300 > > > + (skip-when (or noninteractive (null (getenv "TERM")))) > > If there is no reliable way to create terminal frames in noninteractive > tests, then probably such tests should be skipped by default to be used > only manually when someone will remember to run them periodically. Why not allow them in interactive runs, as the patch above does? > PS: Many web browsers support headless mode that is used in test automation. > I wonder how it would be possible to implement headless mode in Emacs? It should be possible, if someone writes the headless back-end for the display engine, akin to xterm.c+xfns.c for X, just much simpler. (Probably starting with term.c should be easier.) Patches welcome. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 23 02:54:26 2025 Received: (at 79056) by debbugs.gnu.org; 23 Jul 2025 06:54:26 +0000 Received: from localhost ([127.0.0.1]:47708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ueTMw-0008Ah-2v for submit@debbugs.gnu.org; Wed, 23 Jul 2025 02:54:26 -0400 Received: from mout-y-209.mailbox.org ([2001:67c:2050:103:465::209]:43138) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ueTMr-0008AN-P9 for 79056@debbugs.gnu.org; Wed, 23 Jul 2025 02:54:23 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-y-209.mailbox.org (Postfix) with ESMTPS id 4bn4cN6Z7FzB0FV; Wed, 23 Jul 2025 08:54:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1753253653; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dEmAYr17e2VJM+gFPZ4ktMwGZi7W0eiIBfJvKSR417Q=; b=GA7YmklJJuqSoZ0miD/H8mBjY20VZOS11J+/wIha9Zw6fRoAHDTl/lEul3ldILov0OJpkL 7v49EycNBB+Xla7FTHh4TRe7e9CRL1/ZvSgNv4XRqtMIFiXjYFRVPVs0p0WOdvWCxs9DgT rV8jfZzzRJgTUFTqsLF+JWcTLfinnzY/Z7aVE1hteNfKFaTbsgmkejqIjK9n42hvNuU2xI VnLurDBmfQmHG2d95inK+erczqE6ksX7fK0wZXe3hTlEBLUArhPVtczRA/iBhqlimOLwk7 Or+vy/NzEE4b5VRcoavUdI0IJZ7NYROvD+/v9CB01ERTIblP6Sj49R6c2t1s9Q== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of juri@linkov.net designates 2001:67c:2050:b231:465::102 as permitted sender) smtp.mailfrom=juri@linkov.net From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#79056: tab-bar-tests-quit-restore-window sometimes fails in *compilation* buffer In-Reply-To: <86ecu89xw9.fsf@gnu.org> Organization: LINKOV.NET References: <03d8becb-a6a1-425c-a727-e5910af739a5@cs.ucla.edu> <878qkjjq7y.fsf@mail.linkov.net> <9abd8696-cf4d-4a04-ad2b-a801b34531df@cs.ucla.edu> <87freoep0c.fsf@mail.linkov.net> <86ecu89xw9.fsf@gnu.org> Date: Wed, 23 Jul 2025 09:51:22 +0300 Message-ID: <871pq7iemt.fsf@mail.linkov.net> MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4bn4cN6Z7FzB0FV X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79056 Cc: 79056@debbugs.gnu.org, eggert@cs.ucla.edu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> > + (skip-when (or noninteractive (null (getenv "TERM")))) >> >> If there is no reliable way to create terminal frames in noninteractive >> tests, then probably such tests should be skipped by default to be used >> only manually when someone will remember to run them periodically. > > Why not allow them in interactive runs, as the patch above does? What are interactive runs? Maybe I'm missing something, but I see two distinctions: 1. automatic tests that run on EMBA 2. manual tests that are invoked locally by e.g. `make -C test tab-bar-tests` 1. noninteractive tests that run without term or a connection to the X display 2. interactive tests that can create X frames, etc. Automatic tests on EMBA can't be interactive without headless mode. So what remains to do is to manually run interactive tests locally. But IIUC `make -C test tab-bar-tests` is noninteractive. And I don't know what command line could run them interactively, so that tests could pop up X frames, etc. >> PS: Many web browsers support headless mode that is used in test automation. >> I wonder how it would be possible to implement headless mode in Emacs? > > It should be possible, if someone writes the headless back-end for the > display engine, akin to xterm.c+xfns.c for X, just much simpler. Probably in such headless mode X calls can be replaced with stubs or mocks unless they are stateful. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 23 07:44:19 2025 Received: (at 79056) by debbugs.gnu.org; 23 Jul 2025 11:44:19 +0000 Received: from localhost ([127.0.0.1]:49004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ueXtS-0008Sz-Ub for submit@debbugs.gnu.org; Wed, 23 Jul 2025 07:44:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45076) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ueXtP-0008SV-GK for 79056@debbugs.gnu.org; Wed, 23 Jul 2025 07:44:16 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ueXtI-00077G-DN; Wed, 23 Jul 2025 07:44:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Er/8Eyu0r6RZWUtHh0acca539PaBmjv8MdvkR1wAoTI=; b=JK6NNMGKNFrY GInZ9DGn3QYvYUIMpedTzLnKYqnx+Isn1ZMihJZ6SCYXEMBQZ8HioBfqe2UP6CIjYqu341b5LOS5M hiTh5aEfgCMNl50OSGCpIufNtU4eZeLSVNyuJMwi13lA+pB6SC3GXmwjDngh0srafLkYdDrZjqVyz wxw0m+KFgq1mJN0566FDnBLFTfFaHuPQyWDnTRN+KEB6S5iLBQd90IkW4sZ7LaJOHD34WUpH2RWgv Bgqbe9ORv/fVwkfoJDHR4aC0wTlfGSowGx1OLX8xsYQ5FnOS+qal+VYxtkg2I4Hx7x3oQAS625Dl1 UYTb5Itn8pGhrKad29+aUA==; Date: Wed, 23 Jul 2025 14:44:05 +0300 Message-Id: <86ms8v6sje.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov In-Reply-To: <871pq7iemt.fsf@mail.linkov.net> (message from Juri Linkov on Wed, 23 Jul 2025 09:51:22 +0300) Subject: Re: bug#79056: tab-bar-tests-quit-restore-window sometimes fails in *compilation* buffer References: <03d8becb-a6a1-425c-a727-e5910af739a5@cs.ucla.edu> <878qkjjq7y.fsf@mail.linkov.net> <9abd8696-cf4d-4a04-ad2b-a801b34531df@cs.ucla.edu> <87freoep0c.fsf@mail.linkov.net> <86ecu89xw9.fsf@gnu.org> <871pq7iemt.fsf@mail.linkov.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79056 Cc: 79056@debbugs.gnu.org, eggert@cs.ucla.edu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Juri Linkov > Cc: eggert@cs.ucla.edu, 79056@debbugs.gnu.org > Date: Wed, 23 Jul 2025 09:51:22 +0300 > > >> > + (skip-when (or noninteractive (null (getenv "TERM")))) > >> > >> If there is no reliable way to create terminal frames in noninteractive > >> tests, then probably such tests should be skipped by default to be used > >> only manually when someone will remember to run them periodically. > > > > Why not allow them in interactive runs, as the patch above does? > > What are interactive runs? When you start Emacs, load the test file, then say M-x ert-run-tests-interactively RET > >> I wonder how it would be possible to implement headless mode in Emacs? > > > > It should be possible, if someone writes the headless back-end for the > > display engine, akin to xterm.c+xfns.c for X, just much simpler. > > Probably in such headless mode X calls can be replaced with stubs or mocks > unless they are stateful. There should be no X calls at all. Emacs only calls X functions when the frame is an X frame. In other case, the display code calls a suitable method that corresponds to the frame kind. See the initialization of these methods in x_create_terminal and a similar initialization for TTY frames in set_tty_hooks. We need something like that for the so-called "initial" frames created by the noninteractive session. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 23 10:46:27 2025 Received: (at 79056) by debbugs.gnu.org; 23 Jul 2025 14:46:27 +0000 Received: from localhost ([127.0.0.1]:50725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ueaje-0004X9-EJ for submit@debbugs.gnu.org; Wed, 23 Jul 2025 10:46:27 -0400 Received: from mout.gmx.net ([212.227.15.19]:47133) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ueajb-0004Wh-Tt for 79056@debbugs.gnu.org; Wed, 23 Jul 2025 10:46:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1753281967; x=1753886767; i=michael.albinus@gmx.de; bh=wo+OECcb2R0q35GJ5WNUl/ShzVc42NCLZs4R4CExT50=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=lL4VNIfxKW71DmMt4aJjTBUkXP+JPAnC40LIc0f8b1HyJROC+PHSoTv8PrG6HKCu eXuGDcCDPiVaVeSJVoVd4rldRK1oU9drL71s/q5AyGPh16xdG3+g0GMuTHjF1IqFN vjjFsZ29Re6C6nxYWGir9nd9Pl/92tbJpoRqhApEphLe/LA9aRTFYQP4XHyYQkH4S 6Tjp7hs8hKOOKQw/eStXeyJJLT+1N+4DeuMO3Wo8lTLkPdgmISHFPqHvAfPnKqp8z i9lTchTRaJoX3csdhgVCM5Y+E6UhK7ciryxcLlrlWlswLZbLNVYzwOMdQLAoI5NRw LcoZqmB2y2V6QFpYXw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.37.61]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MJVHe-1uyKXP1uEC-00Uy4C; Wed, 23 Jul 2025 16:46:07 +0200 From: Michael Albinus To: Juri Linkov Subject: Re: bug#79056: tab-bar-tests-quit-restore-window sometimes fails in *compilation* buffer In-Reply-To: <871pq7iemt.fsf@mail.linkov.net> References: <03d8becb-a6a1-425c-a727-e5910af739a5@cs.ucla.edu> <878qkjjq7y.fsf@mail.linkov.net> <9abd8696-cf4d-4a04-ad2b-a801b34531df@cs.ucla.edu> <87freoep0c.fsf@mail.linkov.net> <86ecu89xw9.fsf@gnu.org> <871pq7iemt.fsf@mail.linkov.net> Date: Wed, 23 Jul 2025 16:46:05 +0200 Message-ID: <87h5z3ge36.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1: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Q8kW ZW4madXnU12nFB1IOygKtXev0BsW5LjpjPe3Z9axNUbYtU3USAxr6Sn33EEFPEPo+th2fvj7I tQMWnjBOdZRkFypvtO67V8wtCYOLwHj59f3JTWR4O+wFjHOiUm3mOY1GVQFS3FzOmXSHRTHnJ O3hBKWLWv7XudBnxidx1nJIMZWjeqHKl/K3ei6eKrVuBt1ng5X/NiBQk1+ZGf5ngHz+RkGp2k eeB2QIJTNRkNfEuFlBBL2p7TXjTZKcK2LieEtI2SFfPzcQCjoHnuklxssQg6VHrHaVgWDK8mD h1TofpXZDDwJpwbgf5fxKx6sSCsdbABpeHIjxH/yZfkkzlog7FfCEwJGFLes818jh06xQc9Nz zTfdxpw7i3wikDRpH+XvL53YpRyK61A6U61UhI1x1Yj3AmFmfvzT5ZTqvOOCvpI7aJHnwMqOd 96Z6sgijlaRE4XgyKUwzYtq2VpkyboaMb+nlPA5ZUrWn9F4dHeR7t0Aeri6TTNxLRjRHp4mNF u00xbcIenkqV79nR/y/5nyJ+qpBD3VEbcuX8DlmSIKLmSd5oM4+cdj6EHFKNlwqeaUvU+pRi+ 00Ibojd1inebyzqCBB50Qo3DTyOwJIixZ4eM4BVhqo/20GTHju7kLRkuGwZ+3Jbu1W5axVo+Z +vSfoYcuxkeO6WI4i7/w+M+H1iSwtuXKYW34+ZTKY/ipB0o4YXzAOs+7uktrP/GaL6/O4gl0r 5Gl0IJzHWGf7mg= X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79056 Cc: Eli Zaretskii , eggert@cs.ucla.edu, 79056@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Juri Linkov writes: Hi Juri, > Automatic tests on EMBA can't be interactive without headless mode. > So what remains to do is to manually run interactive tests locally. > But IIUC `make -C test tab-bar-tests` is noninteractive. > And I don't know what command line could run them interactively, > so that tests could pop up X frames, etc. See test/README: --8<---------------cut here---------------start------------->8--- The tests are run in batch mode by default; sometimes it's useful to get precisely the same environment but run in interactive mode for debugging. To do that, use make TEST_INTERACTIVE=yes ... --8<---------------cut here---------------end--------------->8--- (I haven't used this for years, so I don't know whether it still works) Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 23 13:11:22 2025 Received: (at 79056) by debbugs.gnu.org; 23 Jul 2025 17:11:22 +0000 Received: from localhost ([127.0.0.1]:51555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ueczy-000692-9x for submit@debbugs.gnu.org; Wed, 23 Jul 2025 13:11:22 -0400 Received: from mout-y-111.mailbox.org ([2001:67c:2050:103:465::111]:60112) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ueczv-00068M-EE for 79056@debbugs.gnu.org; Wed, 23 Jul 2025 13:11:20 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-y-111.mailbox.org (Postfix) with ESMTPS id 4bnLJH56Lpz9yYD; Wed, 23 Jul 2025 19:11:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; t=1753290672; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=r9XLlSHdhwEZbGUhN6PjZt6krH6ASjL+6tOq4RFZXZQ=; b=KBRJOPxAj35WHu69A5KejzJXmvyNpBdAZZs9syAN1S/3Jf/UeMrAYXdcoJ/Vd7t/pwyEeV H1B4Ui+hnZjwjMPySJLaD9PYT77y1U/ArkgtBPjGbSrQy6Z2UUQmQJ20K4PHbMXgT5Wv17 GATJV2C2tcXRTuPTeLtq5bTBBQARbAGk9PiYCy6f6uxpd/VQ8DTUZ9RACa9vKBOJF0ZNNV v9eOGcSv3vqxwBahf2SdDsiTeyaujwRBK94eJMPcKyqtqEixHnB1tVRnMZzTq71fqZwfo4 nRi621jTqLBsWLysdnBd6L8iIcO39xZdygiYL0hH+iAf7Cq9gg2xTgBO8jnM3A== From: Juri Linkov To: Michael Albinus Subject: Re: bug#79056: tab-bar-tests-quit-restore-window sometimes fails in *compilation* buffer In-Reply-To: <87h5z3ge36.fsf@gmx.de> Organization: LINKOV.NET References: <03d8becb-a6a1-425c-a727-e5910af739a5@cs.ucla.edu> <878qkjjq7y.fsf@mail.linkov.net> <9abd8696-cf4d-4a04-ad2b-a801b34531df@cs.ucla.edu> <87freoep0c.fsf@mail.linkov.net> <86ecu89xw9.fsf@gnu.org> <871pq7iemt.fsf@mail.linkov.net> <87h5z3ge36.fsf@gmx.de> Date: Wed, 23 Jul 2025 19:58:50 +0300 Message-ID: <877bzyq2dp.fsf@mail.linkov.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79056 Cc: Eli Zaretskii , eggert@cs.ucla.edu, 79056@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> Automatic tests on EMBA can't be interactive without headless mode. >> So what remains to do is to manually run interactive tests locally. >> But IIUC `make -C test tab-bar-tests` is noninteractive. >> And I don't know what command line could run them interactively, >> so that tests could pop up X frames, etc. > > See test/README: > > The tests are run in batch mode by default; sometimes it's useful to > get precisely the same environment but run in interactive mode for > debugging. To do that, use > > make TEST_INTERACTIVE=yes ... > > (I haven't used this for years, so I don't know whether it still works) Thanks for the reference. I expected something like this should exist, but didn't remember if it really existed. Now I tried to run make TEST_INTERACTIVE=yes -C test tab-bar-tests after applying the patch provided by Paul. And interactive tests are passed successfully, the output buffer displays: Passed: 3 Failed: 0 Skipped: 0 Total: 3/3 Probably this can't be used on EMBA. So for automatic tests we could still try to add headless mode by implementing a set of hooks like described by Eli.