From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Taylan Kammer Newsgroups: gmane.lisp.guile.bugs Subject: bug#72369: srfi-64: test-end fails to signal an error with null runner Date: Mon, 30 Sep 2024 18:22:32 +0200 Message-ID: <95bfa264-aa8f-4811-9def-276ed5a1b041@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32708"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: Tomas Volf <~@wolfsden.cz>, 72369@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Mon Sep 30 18:24:49 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 1svJCZ-0008K3-Rn for guile-bugs@m.gmane-mx.org; Mon, 30 Sep 2024 18:24:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1svJCK-0001NH-Pi; Mon, 30 Sep 2024 12:24:32 -0400 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 1svJCI-0001Ma-R7 for bug-guile@gnu.org; Mon, 30 Sep 2024 12:24:31 -0400 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 1svJCH-0004NU-UL for bug-guile@gnu.org; Mon, 30 Sep 2024 12:24:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=fAiQKO/2McUghLjCfHLSL0mOSvUMnE+E3Iy42uzbwbY=; b=gr978icvxaAfP2x1ku+e+tNudu4MKeRER2YEsAXFKZCDrAxtIsiHsFY4oYl8869fIB6c0GUvCqZueYH1a3l74HoIMCROm9+GoYAgNZ3ujktqxFp/mBNTjcatuf+lUOGKtajGyhpySAjOU3hIo76gGBx0p9Pm2waqTKKBrx2d9o0YqkJwr9CyHhxafEU6MKrQZ+vy9akKmJeTdX+8hODoiAZAfhIhJO/MfjwUkDNEe43A3zLQByQjmP/e7ZntksZmYOWHEETZVhtfeW6vQxe54tf885Z0iq6SU3zzvbFlgmJoSONTOTlvHhWkum9KZ0ZQasnTYp/JB6Q0NRftN4mJyw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1svJCo-0001x4-Hy for bug-guile@gnu.org; Mon, 30 Sep 2024 12:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Taylan Kammer Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 30 Sep 2024 16:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72369 X-GNU-PR-Package: guile Original-Received: via spool by 72369-submit@debbugs.gnu.org id=B72369.17277134557484 (code B ref 72369); Mon, 30 Sep 2024 16:25:02 +0000 Original-Received: (at 72369) by debbugs.gnu.org; 30 Sep 2024 16:24:15 +0000 Original-Received: from localhost ([127.0.0.1]:45722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1svJC3-0001we-1E for submit@debbugs.gnu.org; Mon, 30 Sep 2024 12:24:15 -0400 Original-Received: from mail-wr1-f54.google.com ([209.85.221.54]:39374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1svJC0-0001wW-6R for 72369@debbugs.gnu.org; Mon, 30 Sep 2024 12:24:13 -0400 Original-Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-37cc5ba03c6so300606f8f.1 for <72369@debbugs.gnu.org>; Mon, 30 Sep 2024 09:23:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727713353; x=1728318153; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=fAiQKO/2McUghLjCfHLSL0mOSvUMnE+E3Iy42uzbwbY=; b=iwXXfMkOJ3/oRX2uQaZIVOXXvCH/FhXZTa1Zp/FDw1m3oAyKeyZMevlXJ6W0CkVOBP So7BpsVbfq8J7CdldWuBVRFq9OHqwNGEXHhyqrqG66Ffmu5Z5qCmRM7lSO9GCEC/ar34 IAIEEmWj5A0j7rCA9taNUehV8/MbFgfjO8mgbVYOZZ8APpksXk8Ze/rfEMtzBWqew9rZ Dk+ThTfNJrDnvUXheXDzAlBppsdJZsTlZXrEj4fDPcmhWJymLcuuE4dHcBWvuickyxgs NCmiynDgaXsuYn7QFANolwJfY++8BSHsVxkelehxQK24Bx3Cn1Fj214G5V20W5e3Jbyo KdDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727713353; x=1728318153; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fAiQKO/2McUghLjCfHLSL0mOSvUMnE+E3Iy42uzbwbY=; b=vUGbExP6h7ch5pE5b45dAlFyEqUjK3sUNOqcMntRKJGKS2uOEiHEgioIPmdSGN3MbD gOQse1H0HyWRqBbiRjxEIcZgh2zyW81GgRj+LMZkDwalVB2kARzBJq0C3HwdcIo2pe7K vrUb64kZCsuJbAQzO/zttdwCT/oz94ZnVDzW/LZ19lu3SNALLAyJVJejkcbvyrb3baJr zx13pjKql9B68qai2S/s42IlIVxL6uXPPo8EzdzxwkwnhBdzSrrYJU0U4pifhZU+Qdij yqmaZS9bsrDRc3Pkt7gzpKkMC+lHtvBPXgW8fC8fXhRO7rT0C6lFOjE0x8d/2/OhbCYP DEFg== X-Forwarded-Encrypted: i=1; AJvYcCVDpJG1kvbM5Rb2t+bk5Wz3mwyVfqaCMzCYBwijdcQqHf4eG7edAeeD8p0npHONswjTqGAN0Q==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yz+8nClf1OdF9MjOFrBaDBSqPtDiTFNrv+q5lPuIHCJPGfxzDGU EM5FF4HrgKmClIDSOGUxEdBdiq6+kJRuwPyO3YNEEYA95J3nks0GY8Jpf8xjScU= X-Google-Smtp-Source: AGHT+IGvlsxji2tB8Pn62g6BhdxDypFOVAU0szjs3g3NLKDADKfHEQQarq7m5COOWIIYTbJ4/KecEw== X-Received: by 2002:a5d:6c6e:0:b0:374:cd01:8b72 with SMTP id ffacd0b85a97d-37cde446cffmr2672374f8f.9.1727713353227; Mon, 30 Sep 2024 09:22:33 -0700 (PDT) Original-Received: from ?IPV6:2003:106:8f04:c300:192e:476d:8ae3:22f2? (p200301068f04c300192e476d8ae322f2.dip0.t-ipconnect.de. [2003:106:8f04:c300:192e:476d:8ae3:22f2]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37cd5730e9dsm9360770f8f.71.2024.09.30.09.22.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Sep 2024 09:22:32 -0700 (PDT) Content-Language: en-US In-Reply-To: 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:10998 Archived-At: On 30.07.2024 21:51, Tomas Volf wrote: > Hello, > > I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. > > The specification says the following about the test-end: > >> An error is reported if the suite-name does not match the current test group >> name. > Thus the following should signal an error: > > (use-modules (srfi srfi-64)) > (let ((r (test-runner-null))) > (test-runner-current r) > (test-begin "x") > (test-end "y")) > > However it does not. > > Have a nice day > Tomas Volf This would be easy to change, but the on-bad-end-name handler would be kind of useless if test-end was hardcoded to always raise an error. I think the intended meaning of the spec is that the default/simple test runner reports an error in this case (by implementing the on-bad-end-name handler) but not test-end itself. One could argue that "reporting" an error is not the same thing as signaling/raising one. We could make test-end always print something to stderr, but not actually raise an error, so it technically fulfills the spec's promise that it "reports" an error, but the usefulness of this is unclear to me. Opinions welcome. - Taylan