From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: Why are the tests byte-compiled Date: Fri, 17 Jun 2016 16:02:53 +0100 Message-ID: <87k2hn26zm.fsf@russet.org.uk> References: <8760ta8amt.fsf@russet.org.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1466178368 17763 80.91.229.3 (17 Jun 2016 15:46:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jun 2016 15:46:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 17 17:45:58 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 1bDvy1-00084E-KZ for ged-emacs-devel@m.gmane.org; Fri, 17 Jun 2016 17:45:57 +0200 Original-Received: from localhost ([::1]:58507 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDvy0-0004D0-VX for ged-emacs-devel@m.gmane.org; Fri, 17 Jun 2016 11:45:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDvJ4-0003ju-Rv for emacs-devel@gnu.org; Fri, 17 Jun 2016 11:03:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDvJ1-0004PX-ML for emacs-devel@gnu.org; Fri, 17 Jun 2016 11:03:38 -0400 Original-Received: from cloud103.planethippo.com ([31.216.48.48]:56581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDvJ1-00049W-Bb for emacs-devel@gnu.org; Fri, 17 Jun 2016 11:03:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From; bh=bTeQU2qzwfFS6ZYpGO3G5cw9GgYVnAeRJFVLnPa2xbs=; b=eesm7rF+XipIVBr40tzpf7Vo0p Tfx+RySGHm3f0+a33pWsjXNxmHSHpXDlXoNKlF0K+f0oPCZN/rtwlttnNzNg++JCDUxXAep4smip1 iG6v0YLQZR1ZpoBDbw8ebraFCk94gQaRbx2glMSVrAQVkxf6dnkuLaSfXBhZU8UuYhujmDjDwGkYa a+Vtaug3KcuFta8a+2lPhqs4nuyL9rqRtJUwkpGr4ZKf4YWPraGikcmizohHx0pQE5VW0xBN0mkHw C7xmSjCGa8gwy0ymePOFQs8W6/+6POaowKWygBsBm7CcRAriSbywxG/aB6dozAf4ggNEqjDQbhgcP g7vvzHjw==; Original-Received: from janus-nat-128-240-225-60.ncl.ac.uk ([128.240.225.60]:33240 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86_1) (envelope-from ) id 1bDvIL-000YQf-JN; Fri, 17 Jun 2016 16:02:53 +0100 In-Reply-To: (Drew Adams's message of "Wed, 15 Jun 2016 14:55:29 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 31.216.48.48 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:204445 Archived-At: Drew Adams writes: >> I'm just trying to write some tests, and I get an error like this. >> >> Test open-this-file backtrace: >> #[nil "\306\307!\310\311\216\n\312P\313\314!\315\216\316\314\310 >> ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc >> >> 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. >> >> 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") >> >> which is useful. >> >> 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. Sure, but in this case the byte-code hides everything of use. I can't see any reason *why* they are byte compiled. Phil