unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: Bruno Haible <bruno@clisp.org>, Eli Zaretskii <eliz@gnu.org>
Cc: 65325@debbugs.gnu.org
Subject: bug#65325: "make check" hangs on Cygwin
Date: Sat, 19 Aug 2023 14:25:33 -0400	[thread overview]
Message-ID: <f3d894b2-94b0-67c8-0dd5-5c2f2f96543e@cornell.edu> (raw)
In-Reply-To: <4005130.h22eISveaB@nimes>

[-- Attachment #1: Type: text/plain, Size: 395 bytes --]

On 8/19/2023 1:02 PM, Bruno Haible wrote:
> Ken Brown wrote:
>> So the first step is find out if this failure is
>> Cygwin-only.  Bruno, have you tested a build --without-all on other
>> platforms?
> 
> Yes, I've tested a current Emacs git on several other platforms, with
> --without-all --without-x. Cygwin is the only one where 'server-tests' hung.

OK, thanks.  Eli, how's the attached?

Ken

[-- Attachment #2: 0001-Skip-hanging-tests-on-Cygwin-bug-65325.patch --]
[-- Type: text/plain, Size: 2550 bytes --]

From f58d01e01e095b18a9c64c0bab3acd79fd4ba96f Mon Sep 17 00:00:00 2001
From: Ken Brown <kbrown@cornell.edu>
Date: Sat, 19 Aug 2023 14:18:57 -0400
Subject: [PATCH] Skip hanging tests on Cygwin (bug#65325)

* test/lisp/server-tests.el (server-tests/can-create-frames-p):
Define to be nil on Cygwin unless Emacs has at least one of the
features gfilenotify, dbus, or threads.  This causes three tests
to be skipped.

* test/src/keyboard-tests.el (keyboard-unread-command-events):
Skip on Cygwin unless Emacs has at least one of the features
gfilenotify, dbus, or threads.
---
 test/lisp/server-tests.el  | 12 +++++++++---
 test/src/keyboard-tests.el |  5 +++++
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/test/lisp/server-tests.el b/test/lisp/server-tests.el
index ffafa74925f1..de1aa80c272d 100644
--- a/test/lisp/server-tests.el
+++ b/test/lisp/server-tests.el
@@ -25,12 +25,18 @@
 
 (defconst server-tests/can-create-frames-p
   (and (not (memq system-type '(windows-nt ms-dos)))
-       (not (member (getenv "TERM") '("dumb" "" nil))))
+       (not (member (getenv "TERM") '("dumb" "" nil)))
+       (or (not (eq system-type 'cygwin))
+           (featurep 'gfilenotify)
+           (featurep 'dbus)
+           (featurep 'threads)))
   "Non-nil if we can create a new frame in the tests.
 Some tests below need to create new frames for the emacsclient.
 However, this doesn't work on all platforms.  In particular,
-MS-Windows fails to create frames from a batch Emacs session.  In
-cases like that, we just skip the test.")
+MS-Windows fails to create frames from a batch Emacs session.
+The same is true on Cygwin unless Emacs has at least one of the
+features gfilenotify, dbus, or threads (bug#65325).  In cases
+like that, we just skip the test.")
 
 (defconst server-tests/max-wait-time 5
   "The maximum time to wait in `server-tests/wait-until', in seconds.")
diff --git a/test/src/keyboard-tests.el b/test/src/keyboard-tests.el
index 3393c1d90188..bbb9c19e2e73 100644
--- a/test/src/keyboard-tests.el
+++ b/test/src/keyboard-tests.el
@@ -23,6 +23,11 @@
 
 (ert-deftest keyboard-unread-command-events ()
   "Test `unread-command-events'."
+  ;; Avoid hang on Cygwin; see bug#65325.
+  (skip-unless (or (not (eq system-type 'cygwin))
+                   (featurep 'gfilenotify)
+                   (featurep 'dbus)
+                   (featurep 'threads)))
   (let ((unread-command-events nil))
     (should (equal (progn (push ?\C-a unread-command-events)
                           (read-event nil nil 1))
-- 
2.39.0


  reply	other threads:[~2023-08-19 18:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-15 22:08 bug#65325: "make check" hangs on Cygwin Bruno Haible
2023-08-16 11:54 ` Eli Zaretskii
2023-08-16 13:58   ` Bruno Haible
2023-08-16 15:23   ` Ken Brown
2023-08-16 17:49     ` Ken Brown
2023-08-18 22:02       ` Ken Brown
2023-08-19  6:15         ` Eli Zaretskii
2023-08-19 16:43           ` Ken Brown
2023-08-19 17:02             ` Bruno Haible
2023-08-19 18:25               ` Ken Brown [this message]
2023-08-19 19:54                 ` Eli Zaretskii
2023-08-19 20:58                   ` Ken Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f3d894b2-94b0-67c8-0dd5-5c2f2f96543e@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=65325@debbugs.gnu.org \
    --cc=bruno@clisp.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).