From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Why are the tests byte-compiled Date: Wed, 15 Jun 2016 14:55:29 -0700 (PDT) Message-ID: References: <8760ta8amt.fsf@russet.org.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1466027794 18327 80.91.229.3 (15 Jun 2016 21:56:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jun 2016 21:56:34 +0000 (UTC) To: phillip.lord@russet.org.uk, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 15 23:56:22 2016 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 1bDInJ-0000lz-CI for ged-emacs-devel@m.gmane.org; Wed, 15 Jun 2016 23:56:17 +0200 Original-Received: from localhost ([::1]:45290 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDInF-0000YH-FP for ged-emacs-devel@m.gmane.org; Wed, 15 Jun 2016 17:56:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDImi-0000YC-16 for emacs-devel@gnu.org; Wed, 15 Jun 2016 17:55:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDImd-0001XK-SD for emacs-devel@gnu.org; Wed, 15 Jun 2016 17:55:38 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:47832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDImd-0001XF-Ig for emacs-devel@gnu.org; Wed, 15 Jun 2016 17:55:35 -0400 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u5FLtXS3009529 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 15 Jun 2016 21:55:34 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u5FLtXij005383 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 15 Jun 2016 21:55:33 GMT Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id u5FLtVZq012421; Wed, 15 Jun 2016 21:55:32 GMT In-Reply-To: <8760ta8amt.fsf@russet.org.uk> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:204413 Archived-At: > I'm just trying to write some tests, and I get an error like this. >=20 > Test open-this-file backtrace: > #[nil "\306\307!\310\311\216\n\312P\313\314!=1C\315\216\316\314\310 > ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc >=20 > Which is pretty useless for debugging. On the other hand, if I launch > the erts using the same command as the makefile uses but directly on the > source file (i.e. not byte compiled) then I get. >=20 > Test open-this-file backtrace: > (let ((file (concat vc-git-tests-data-dir "file1.txt")) (git-dir (ge > (setq value-0 (let ((file (concat vc-git-tests-data-dir "file1.txt") >=20 > which is useful. >=20 > Conclusion: the emacs tests should not be byte-compiled. Or am I > missing something? Backtraces include byte-code for code that was compiled. They should not. Rather, it should at least be possible for a user or a program to elide the byte-code in a backtrace. Bug #6991, 2010/09/07. http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D6991