From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.devel Subject: Need help with catching reader error Date: Wed, 22 Apr 2009 07:32:47 -0700 Message-ID: <1240410767.3133.109.camel@localhost.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240411083 3313 80.91.229.12 (22 Apr 2009 14:38:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Apr 2009 14:38:03 +0000 (UTC) To: Guile Devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Apr 22 16:39:22 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LwdWq-0001fz-0i for guile-devel@m.gmane.org; Wed, 22 Apr 2009 16:34:24 +0200 Original-Received: from localhost ([127.0.0.1]:38368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwdVQ-0005m6-Vx for guile-devel@m.gmane.org; Wed, 22 Apr 2009 10:32:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LwdVK-0005lv-8K for guile-devel@gnu.org; Wed, 22 Apr 2009 10:32:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LwdVI-0005lh-Pp for guile-devel@gnu.org; Wed, 22 Apr 2009 10:32:49 -0400 Original-Received: from [199.232.76.173] (port=47638 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwdVI-0005le-Ge for guile-devel@gnu.org; Wed, 22 Apr 2009 10:32:48 -0400 Original-Received: from smtp103.prem.mail.sp1.yahoo.com ([98.136.44.58]:34319) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LwdVI-0004sW-2P for guile-devel@gnu.org; Wed, 22 Apr 2009 10:32:48 -0400 Original-Received: (qmail 63903 invoked from network); 22 Apr 2009 14:32:47 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Subject:From:To:Content-Type:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=cQKNesLVIh25m1ZrjeS6XB6HqDvTlNuwQwLmvzAbzlCAvW2re1qAceb+yPqnWWCW/YoaAX9kwdzYxhDU4P3E5MjCTX6Ph0x3u/YU7hTTHjVULoPhaz5AUVPPBSQkyhVQRkftwo4uNvUs2PZnvHSQGXf3yw9DxSIfrHhmPO0Kf/Y= ; Original-Received: from unknown (HELO ?192.168.1.64?) (spk121@71.143.114.144 with plain) by smtp103.prem.mail.sp1.yahoo.com with SMTP; 22 Apr 2009 14:32:46 -0000 X-YMail-OSG: __5Zk.YVM1lzqVLKOjcnp6av3rkL73PLDKzv0wNjYTEJJNIJO6YVZnybDUDYy.QXMzDvjR3p3o_MaQIgakL.5RIfg1Y2TMjhotJX2b9tPjsWgK_v.Zj0BQGZqggU1lEQg7.0X2TqXNfdAG.373ETSa.wxASbYvK.Q1lR6sKs3ey3JVQKa.btxAYkONdktJOd9CGoDT.t52pCIZPHNbNWqA.heyF_mt8XY.QP1pmylNTKpUDWQ9J1hU5mXb4Yvfj9F1esP.DWAeN0E31mC2wpwc9cpD8KKGiCLI3m1YiZI9yASY7QjNg- X-Yahoo-Newman-Property: ymail-3 X-Mailer: Evolution 2.24.5 (2.24.5-1.fc10) X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:8445 Archived-At: Hi- Here's a puzzle for you. I want to write a test for the test suite to catch a lexical syntax error, like the following non-existent named character. But I need to somehow introduce another layer of evaluation. In the following, Guile would tell me that my test script has an error and then quit, instead of catching the error and moving on. (use-modules (test-suite lib)) (define exception:read-error (cons 'read-error "^.*")) (with-test-prefix "basic char handling" (pass-if-exception "non-existent named character" exception:read-error #\foobar)) Thanks, Mike Gran