From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.devel Subject: Re: Testing errors from macros with ERT and byte-compilation Date: Sun, 18 Aug 2013 21:13:18 +0200 Message-ID: <87vc32olrl.fsf@engster.org> References: <87zjsfnu6k.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1376853217 28628 80.91.229.3 (18 Aug 2013 19:13:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Aug 2013 19:13:37 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 18 21:13:40 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VB8Px-0000WP-58 for ged-emacs-devel@m.gmane.org; Sun, 18 Aug 2013 21:13:37 +0200 Original-Received: from localhost ([::1]:39760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VB8Pw-0003wM-NP for ged-emacs-devel@m.gmane.org; Sun, 18 Aug 2013 15:13:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VB8Pn-0003vS-LK for emacs-devel@gnu.org; Sun, 18 Aug 2013 15:13:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VB8Ph-0001T4-Mp for emacs-devel@gnu.org; Sun, 18 Aug 2013 15:13:27 -0400 Original-Received: from randomsample.de ([83.169.19.17]:48302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VB8Ph-0001Sw-EE; Sun, 18 Aug 2013 15:13:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=HUld1UABQEecCADttsmSSpTLYCEqutwA5bUJS0v4cyo=; b=AADosKncRK1iONl5QA/KY6XwdJEywA8ZX96IwPxn2Lf1ZQBQ3LVlKvUPrL82UQEHQIfzu4qnIn9k+DbSFer67E28gT2AUIiKkMZJKGGbBY/RBFhFVhI/GYgliTiNZ9SH; Original-Received: from dslc-082-083-036-224.pools.arcor-ip.net ([82.83.36.224] helo=spaten) by randomsample.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1VB8Pg-0007wQ-3v; Sun, 18 Aug 2013 21:13:20 +0200 In-Reply-To: (Glenn Morris's message of "Sun, 18 Aug 2013 14:55:31 -0400") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) Mail-Followup-To: Glenn Morris , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 83.169.19.17 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162859 Archived-At: Glenn Morris writes: > How does it work now? The test suite upstream is not using ERT, but a lot of `condition-case'. > Or use something like: > > (ert-deftest eieio-broken-initform () > (should-error > (eval '(defclass broken-init nil > I feel I don't really understand what the problem is (I'm saying that a > lot today, maybe it's me...). Don't worry, it's me. I didn't think of 'eval'; that's exactly what I was looking for. -David