From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#55628: debug-timer-check fails on macOS 11.6.6 Date: Thu, 26 May 2022 14:37:15 +0300 Message-ID: <837d68plsk.fsf@gnu.org> References: <87sfoxdcso.fsf@gnus.org> <015331C8-C4AF-49DB-A859-BE01012B77BF@acm.org> <87D17F2F-BA51-45E3-BD81-A8CF9044C3BE@acm.org> <83sfoxpmff.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30705"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55628@debbugs.gnu.org, larsi@gnus.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 26 14:13:04 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nuCMS-0007oM-85 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 May 2022 14:13:04 +0200 Original-Received: from localhost ([::1]:49260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuCMR-0000RK-7z for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 May 2022 08:13:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuBoZ-0006eX-3f for bug-gnu-emacs@gnu.org; Thu, 26 May 2022 07:38:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35009) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuBoX-00012E-QR for bug-gnu-emacs@gnu.org; Thu, 26 May 2022 07:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nuBoX-0003DR-Kv for bug-gnu-emacs@gnu.org; Thu, 26 May 2022 07:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 May 2022 11:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55628 X-GNU-PR-Package: emacs Original-Received: via spool by 55628-submit@debbugs.gnu.org id=B55628.165356505212322 (code B ref 55628); Thu, 26 May 2022 11:38:01 +0000 Original-Received: (at 55628) by debbugs.gnu.org; 26 May 2022 11:37:32 +0000 Original-Received: from localhost ([127.0.0.1]:57139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuBo4-0003Cf-0Y for submit@debbugs.gnu.org; Thu, 26 May 2022 07:37:32 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuBnz-0003CQ-8b for 55628@debbugs.gnu.org; Thu, 26 May 2022 07:37:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59998) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuBnt-0000xP-Vc; Thu, 26 May 2022 07:37:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=I7qSu9HKhnKjV7wlwnYEd+Zo7QTcI5QAScG55ngkiOs=; b=dldLBVUX0qwwrRniaqFS vXLSmrCZY3PaOKXKwdEr6NCoWqsTtBH5KoGbbsNCsZ8nhTTkRTkBgzjXeerftG3EVJTWHk66d/FUD oR4bzYhomElWlR5L7RQvC4vpIhpUicT6CWjXtE6E2JcXMlwtGLTv6e6rN1py3qPfThRLZaNdJM0YP p87dz/O+SZE4J0rRRUxDAEhN89FmtPj9BINV8M47zqGoWe29GWf0iq4CnQHCfrEdWlGIQYRPs7RxJ WaazgP0FSF99hGHUZHGv5ThAz+O0OnApxGTf9x+YSc7JUmDDV4BJ4WxKlNBVCZJUV/R6SH/JQeZjh O9mJdDeUOvm52Q==; Original-Received: from [87.69.77.57] (port=3361 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuBnt-0006UI-F0; Thu, 26 May 2022 07:37:21 -0400 In-Reply-To: (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Thu, 26 May 2022 11:57:58 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:233102 Archived-At: > From: Mattias EngdegÄrd > Date: Thu, 26 May 2022 11:57:58 +0200 > Cc: larsi@gnus.org, 55628@debbugs.gnu.org > > 25 maj 2022 kl. 19.11 skrev Eli Zaretskii : > > > Btw, this test will never work on a platform that only has setitimer, > > because only one ITIMER_REAL timer is guaranteed to exist, and the > > function attempts to arm 10 timers at the same time. > > That's not how the code works. `setitimer` will only be called for the first timer to expire. Maybe I've misread the code, then. Apologies. > > We don't usually have testing code in a production build, so why make > > an exception here? Especially since atimers are an obscure feature > > used internally by Emacs. > > There's nothing bad or even unusual about including interfaces for internal testing in production builds, as long as it doesn't unduly reduce performance or cause significant bloat. It's always a trade-off, of course. Not in principle, but we in this project don't do that. E.g., there are several debug-related functions and commands in xdisp.c that are only compiled in under ENABLE_CHECKING. So if we are going to make an exception for this case, we should have some good reason.