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#72379: srfi-64: test-approximate does not handle exceptions Date: Tue, 30 Jul 2024 21:51:57 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26463"; mail-complaints-to="usenet@ciao.gmane.io" To: 72379@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Tue Jul 30 21:54:06 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 1sYsv8-0006h6-PC for guile-bugs@m.gmane-mx.org; Tue, 30 Jul 2024 21:54:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sYsu5-00058E-Re; Tue, 30 Jul 2024 15:53:01 -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 1sYsu4-000545-JX for bug-guile@gnu.org; Tue, 30 Jul 2024 15:53:00 -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 1sYsu4-0006zW-9d for bug-guile@gnu.org; Tue, 30 Jul 2024 15:53:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:From:Date:To:Subject; bh=km7K14R1pKyObsThBDNZDuhLkrWkpQlfyQLT8TF188c=; b=ZtNRGq9YLLlOdn7OJwXgAKr4zlI2MOaj7K3O59tJ7f/4lu47CEiYLyam18eFItIoylljf9/WiCkYqzfWdHT6iU3UbtGBf1LhDwO9ugUAXU1fhKY0gqe1eEvGPXEd2tKw0CWNy3sLtvEDmygkf3rdLlnUYrFEgKIjt61SAPQLyYZW5NH1FO76l7BXcX/vDszd34eTYAofOELmQR8DCxMrteqV/iJV743E0THGZgaGNg0+7Qhi1tVlUZX+hocZwKZNRCZKGf39MNtEOZsO8PhYbaC+sKOubvTdIWiGobTaLgWvGJxSldU+l7c87avhUxnL1p0pw2nN5B8MjgaAi1s9Nw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sYsuI-0006ey-P5 for bug-guile@gnu.org; Tue, 30 Jul 2024 15:53:14 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tomas Volf <~@wolfsden.cz> Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 30 Jul 2024 19:53:14 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72379 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.172236916825331 (code B ref -1); Tue, 30 Jul 2024 19:53:14 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Jul 2024 19:52:48 +0000 Original-Received: from localhost ([127.0.0.1]:48512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYsts-0006aO-CY for submit@debbugs.gnu.org; Tue, 30 Jul 2024 15:52:48 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1sYstY-0006Yb-UX for submit@debbugs.gnu.org; Tue, 30 Jul 2024 15:52:30 -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 <~@wolfsden.cz>) id 1sYstK-0004ve-59 for bug-guile@gnu.org; Tue, 30 Jul 2024 15:52:14 -0400 Original-Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1sYstH-0006s6-L2 for bug-guile@gnu.org; Tue, 30 Jul 2024 15:52:13 -0400 Original-Received: by wolfsden.cz (Postfix, from userid 104) id 6719A2918E0; Tue, 30 Jul 2024 19:51:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1722369118; bh=Y/jZtnziQubOGmyfQxJSphbBC7MSqRYNS1JWjnohbGE=; h=Date:From:To:Subject; b=ZZcwgkgwgrDvaiPT2Mxug4YnjKsstblGf1rX8h2hHtxBuV/5kS7Iz+ceEEy8PuDW6 TYHP61LhYlOU+zKaUdJmWaO2U35gv5S5X0A8KyZWUqj2t8DqUVt3b3o9qQiENt7rLe Y1ZTBb1O3fsNmpwoyd14xSD/Q/+7OifVHnhPQjkJ1EACVygiREO/nauk+x5tTcuAGe KciL+8XOyxJjbJdkScnOcaiarDE0bGVO0Luqf4J/Y5J7OlOCipgE75aXwTkFn6jjUh ljesTNGHgu6dSHJZ+UEdzsgl3TS67FazGwc5/U/23qWyZ70ERZ2YOQGtSWDUlGz/2O N42W9ByrfQdj1docYyrcfDFlTzHgMx+9h7Ag0HbHuxWuQaF+5Qdh3NFHKiSRX4AIJl vWfNUIb1c9VCW4ThvtOVQb4YSj090sf5Ir79CKrlV6DbYoXopnr5Y/Jf89Ebkoz2sr oi3eWKHUIaX8AMBzYoA3Xo62hI9Zo70+jeHVFYP7Hwq+FKRHCt34Aze0tCsS1AL+5F kO/Vs8nPxAdZ8aXgq7ypj5eQUGCow1KmfLjlE0gkqDskNoVDYi4MmWe0f1yGNVaoyR /rxNPeLq5o/zqgYQK7dxlCBK9pBtMwjr7HmKVzv8wnJwiahHpBZZxs/5hTI421amFJ nVK+yZwmSCULrm3SA/kt5gY4= Original-Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 3156A293986 for ; Tue, 30 Jul 2024 19:51:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1722369118; bh=Y/jZtnziQubOGmyfQxJSphbBC7MSqRYNS1JWjnohbGE=; h=Date:From:To:Subject; b=ZZcwgkgwgrDvaiPT2Mxug4YnjKsstblGf1rX8h2hHtxBuV/5kS7Iz+ceEEy8PuDW6 TYHP61LhYlOU+zKaUdJmWaO2U35gv5S5X0A8KyZWUqj2t8DqUVt3b3o9qQiENt7rLe Y1ZTBb1O3fsNmpwoyd14xSD/Q/+7OifVHnhPQjkJ1EACVygiREO/nauk+x5tTcuAGe KciL+8XOyxJjbJdkScnOcaiarDE0bGVO0Luqf4J/Y5J7OlOCipgE75aXwTkFn6jjUh ljesTNGHgu6dSHJZ+UEdzsgl3TS67FazGwc5/U/23qWyZ70ERZ2YOQGtSWDUlGz/2O N42W9ByrfQdj1docYyrcfDFlTzHgMx+9h7Ag0HbHuxWuQaF+5Qdh3NFHKiSRX4AIJl vWfNUIb1c9VCW4ThvtOVQb4YSj090sf5Ir79CKrlV6DbYoXopnr5Y/Jf89Ebkoz2sr oi3eWKHUIaX8AMBzYoA3Xo62hI9Zo70+jeHVFYP7Hwq+FKRHCt34Aze0tCsS1AL+5F kO/Vs8nPxAdZ8aXgq7ypj5eQUGCow1KmfLjlE0gkqDskNoVDYi4MmWe0f1yGNVaoyR /rxNPeLq5o/zqgYQK7dxlCBK9pBtMwjr7HmKVzv8wnJwiahHpBZZxs/5hTI421amFJ nVK+yZwmSCULrm3SA/kt5gY4= Content-Disposition: inline Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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-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:10922 Archived-At: Hello, I think I found a bug in (srfi srfi-64) module shipped with GNU Guile. The specification says that: > The test also fails if an exception is raised, assuming the implementation has > a way to catch exceptions. Guile has a way to catch exceptions. However nevertheless the following does not lead to 'fail, but an exception being raised: (use-modules (srfi srfi-64)) (test-begin "x") (test-approximate 1 (throw 'foo) 1) Leading to: Backtrace: In ice-9/boot-9.scm: 1752:10 8 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In unknown file: 7 (apply-smob/0 #) In ice-9/boot-9.scm: 724:2 6 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 5 (_ #(#(#))) In ice-9/boot-9.scm: 2836:4 4 (save-module-excursion _) 4388:12 3 (_) In /home/wolf/src/guile-wolfsden/tests/srfi-64/test-approximate-throw.srfi64test: 7:0 2 (_) In srfi/srfi-64/testing.scm: 677:16 1 (_ _ #f) In unknown file: 0 (real-part #f) ERROR: In procedure real-part: In procedure real-part: Wrong type argument in position 1: #f Have a nice day Tomas Volf