From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#50975: 28.0.60; mh-utils-tests fail with native compilation Date: Mon, 04 Oct 2021 20:57:22 +0000 Message-ID: References: <9fd40a2f-c653-60b7-7f59-09c925122bf5@cornell.edu> <83o8879r7o.fsf@gnu.org> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32243"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: eliz@gnu.org, kbrown@cornell.edu To: 50975@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 04 22:58:19 2021 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 1mXV2R-0008Cd-CI for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Oct 2021 22:58:19 +0200 Original-Received: from localhost ([::1]:50228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXV2Q-0003yM-E6 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Oct 2021 16:58:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXV2A-0003xD-QJ for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 16:58:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55162) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXV2A-0007vB-Ba for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 16:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXV2A-0003AQ-5s for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 16:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Oct 2021 20:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50975 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: Eli Zaretskii , 50975@debbugs.gnu.org, Ken Brown Original-Received: via spool by submit@debbugs.gnu.org id=B.163338105512135 (code B ref -1); Mon, 04 Oct 2021 20:58:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Oct 2021 20:57:35 +0000 Original-Received: from localhost ([127.0.0.1]:38475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXV1i-00039e-S9 for submit@debbugs.gnu.org; Mon, 04 Oct 2021 16:57:35 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:53146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXV1h-00039X-KB for submit@debbugs.gnu.org; Mon, 04 Oct 2021 16:57:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXV1h-0003al-C1 for bug-gnu-emacs@gnu.org; Mon, 04 Oct 2021 16:57:33 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:54145) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXV1f-0007OC-95; Mon, 04 Oct 2021 16:57:33 -0400 Original-Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 194KvMlw018227 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Mon, 4 Oct 2021 20:57:23 GMT In-Reply-To: (Andrea Corallo via's message of "Mon, 04 Oct 2021 14:24:39 +0000") Received-SPF: pass client-ip=205.166.94.24; envelope-from=akrl@sdf.org; helo=mx.sdf.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:216392 Archived-At: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: [...] > Yep will have a look, I'd bet is `file-directory-p' being redefined with > a incompatible lambda list. > > Andrea Okay I see what's the issue. `with-mh-test-env' through `mh-test-utils-setup-with-mocks' is mocking `call-process'. The substitute for this (`mh-test-utils-mock-call-process') is verifying something each time is called in the assumption that `call-process' is only triggered by the tests. Unfortunatelly to compile a trampoline Emacs is invoking `call-process' and the test fails. This is not 100% trivial to solve cause redefining a primitive needs to have `call-process' functional and is not only a matter of skipping the test in the fake `call-process' when this is called by the native compiler. I've pushed 63cb65dcce to fix that, it builds the two trampolines AOT so we have no interference with the tests. Seems to work here, please have a try. Thanks! Andrea