From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tomas Volf <~@wolfsden.cz> Newsgroups: gmane.lisp.guile.bugs Subject: bug#74385: [PATCH 4/4] srfi-64: Report failed tests in (standards)Errors format. Date: Sat, 16 Nov 2024 18:42:07 +0100 Message-ID: <20241116174210.9160-4-~@wolfsden.cz> References: <20241116174210.9160-1-~@wolfsden.cz> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19680"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Tomas Volf <~@wolfsden.cz>, Janneke Nieuwenhuizen To: 74385@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Sat Nov 16 18:43:47 2024 Return-path: Envelope-to: guile-bugs@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 1tCMpm-0004wP-DG for guile-bugs@m.gmane-mx.org; Sat, 16 Nov 2024 18:43:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tCMp7-0007nN-BM; Sat, 16 Nov 2024 12:43:05 -0500 Original-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 1tCMp5-0007mt-RQ for bug-guile@gnu.org; Sat, 16 Nov 2024 12:43:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tCMp5-0001Sx-JS for bug-guile@gnu.org; Sat, 16 Nov 2024 12:43:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=BJTYFQEukLs4oCvW/YJ7nt22rwz0fP2mQa4l2t57xsk=; b=arli3dNnmjYi8JksK3DcmfEKAhIATANdk3Aci7kPg+FLEQ5vrP/Nx7GCw7iAQuloYzYSY0L5ZqAX/1FVPScHVM5wGTNXrZWsJ/y04qDs4tRA2LKZonu+jJXNNHrTnBiw5jFu2XPLr49EdChpvxwwz+8AkcK2XqFkk2dKDIZIv9YqeI+Qz7hYlXwU6k7FVkd2l4k+u+b3JvvW6V1JxGgFNSpe+M1N+vwusudCZqPg23N6TsyHlBZ2IBbke3rBYWmJzU4STCIfA/rJMmxf1a/fJXCsQ9oo8NzsGfmwSfO6wkRQHOu9ww8fuz681oMYYq6eE83e6OyWl7yxcKC1QcShiQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tCMp5-0006fp-EJ for bug-guile@gnu.org; Sat, 16 Nov 2024 12:43:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tomas Volf <~@wolfsden.cz> Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 16 Nov 2024 17:43:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74385 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch Original-Received: via spool by 74385-submit@debbugs.gnu.org id=B74385.173177894525575 (code B ref 74385); Sat, 16 Nov 2024 17:43:03 +0000 Original-Received: (at 74385) by debbugs.gnu.org; 16 Nov 2024 17:42:25 +0000 Original-Received: from localhost ([127.0.0.1]:54684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCMoS-0006eM-Gy for submit@debbugs.gnu.org; Sat, 16 Nov 2024 12:42:24 -0500 Original-Received: from wolfsden.cz ([37.205.8.62]:40564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1tCMoM-0006dm-IM for 74385@debbugs.gnu.org; Sat, 16 Nov 2024 12:42:19 -0500 Original-Received: by wolfsden.cz (Postfix, from userid 104) id 11144351E3E; Sat, 16 Nov 2024 17:42:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1731778938; bh=xogna9WNsghT9bQUuaw4XetlDSxE1qGqODsEB6hlo3c=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=aavp7suRSWvKjfOGk9e5sJjsRIv8s+2Bp4VTr6PBNLKmamVT8eQk8toCl5URBf1xc A2vlLdO+ybVvz1bw6evNgRQovqzyENRWGhLDAbrlm52RWHwNxYHtIsLArQN56i2aLr fTTAz1O/lzUUiIcEJm57IgD3gMmcX5h6wvGS00Dy56PZZpEWMorvOqiI6odt1MkbXB HStf1iJoRTeSQ3IcuuGDCpBsjqByITRj0O9Ehk2UGIgk+yyMLnSc7TIOUUmcETcqpn /Vi7qbsZ8Tcy47hgRYIKIUYaIflDajUdg8gq/+nje/9uoTBkoMWgRfnfOe1fj3Me1N GWGogSEPS5EJW/VFD+csQerO7rarpuqqxSzN/3sz4GaCSQINcKRPLk6N2rM/Z+i/L+ 5lWuCrrWIn0BbFwFrMXgECHExhpH93lgcXLecvpjT4DxQ2gPsl7Fky4pOAMGmlLjRQ tDOtHkzMWUPURp1He2v/NkiwqERRITREEtW1j/7Yfm1cQo5CsV3o8IZz/x6ZnGKEj/ rvPs6c/PcLb++BPLcY+MmMzchjEacCwgYI3zzh9RQO2QfgQMk461TN6bKVhpDXejY3 LfhrWmPKS4hVEAkNTA4IIgFQ6Xf3Hjj0Efl8hq+hjVSM1GHsDmsII4zZBILvynicCV 26COfBOdRGWPvqa0T3ykB4/g= Original-Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 0545835302E; Sat, 16 Nov 2024 17:42:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1731778937; bh=xogna9WNsghT9bQUuaw4XetlDSxE1qGqODsEB6hlo3c=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=tPvxk4kJylu+CMZDAxdkLzl+WYKS8hfHO9n+t8rck17HVGZ+Tf3B+7HFo49SB1YdZ J1vOD2DeJR5uiQbn5aV66FK5ENG69N5sGQIbc/8+PucmPAU/1IpMjBuCDmDRhJe1LJ H8aBaM05qNJ1olr/f2tZcYP80I9hVtH71geHzdxQaMo/07a42sxlL/Z4O56/Xo+VEF MmzQfOsJbG4WZTEPwDWfJlhR/nHLs3yZI4ERfceBt7MhCmhvc1zMpEb+YDsZ7hx/3/ GtcdGQhmqBkpGEa7CqCnKuWMggvaCsD/UNLya+tPRPYnrqFrfIKpTbYxCRAZQjWzt9 H0nbDRnoaKKD2i5wsZ6PUWAbH8dwrF3F1TsBaClpue7IzGInEsIBEK3gARfUe5DkB9 3BvAq0K7UfXyYd6FewkSlteRt29b17jstAhHaU3h3iofU5mgYO4UzTh8ph9p8ww6xE tw3nwDc1SQNA//WZ5wZSoMpnWcbicz+xsxIx9DLjsy26lz84vlHBooXgZQJ0FkMy1t T9ZFdUdUA90Kio6+vGYGKSQHESZEx1WD2erwzCQS0bEyMx58/GJZsRc2B439c4Bu3R et5dwvPdjFeTY30sCrTUzSYbNd3UQ0IbyUe7l/T6HtANI90ABEAghYDW0UtpDhvaq+ LqccXCVP+GMaoI/DbV4Ec3CI= X-Mailer: git-send-email 2.46.0 In-Reply-To: <20241116174210.9160-1-~@wolfsden.cz> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.bugs:11101 Archived-At: There is a page in the GNU Standards document regarding the format of error messages. Both GNU Emacs and Vim are able to parse it and support jumping to next/previous error. My version did not produce a line in this format for failed tests and this commit rectifies that. * module/srfi/srfi-64.scm (test-on-test-end-simple)[non-passed]: Write out (standards)Errors compatible line. Reported-by: Janneke Nieuwenhuizen --- module/srfi/srfi-64.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/srfi/srfi-64.scm b/module/srfi/srfi-64.scm index 203db49ea..98f6c8114 100644 --- a/module/srfi/srfi-64.scm +++ b/module/srfi/srfi-64.scm @@ -28,6 +28,7 @@ #:use-module (ice-9 format) #:use-module (ice-9 match) #:use-module (srfi srfi-1) + #:use-module (srfi srfi-2) #:use-module (srfi srfi-9) #:use-module (srfi srfi-26) #:use-module (srfi srfi-71) @@ -431,6 +432,10 @@ instead." result-kind (test-runner-test-name runner)) (unless (member result-kind '(pass xfail)) + (and-let* ((file (test-result-ref runner 'source-file)) + (line (test-result-ref runner 'source-line))) + ;; Satisfy (standards)Errors + (format #t "~a:~a: unexpected result~%" file line)) (maybe-print-prop 'source-file #f "~a") (maybe-print-prop 'source-line #f "~a") (maybe-print-prop 'source-form #t "~y") -- 2.46.0