From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: call for more ert tests Date: Wed, 26 Jun 2013 18:50:12 +0300 Message-ID: <83obashnwr.fsf@gnu.org> References: <8541.1372238544@theowa.merten-home.homelinux.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1372261841 18767 80.91.229.3 (26 Jun 2013 15:50:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Jun 2013 15:50:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Merten Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 26 17:50:42 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 1UrrzV-0002ZU-4s for ged-emacs-devel@m.gmane.org; Wed, 26 Jun 2013 17:50:41 +0200 Original-Received: from localhost ([::1]:55377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrrzU-0007pk-2d for ged-emacs-devel@m.gmane.org; Wed, 26 Jun 2013 11:50:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrrzO-0007pX-M4 for emacs-devel@gnu.org; Wed, 26 Jun 2013 11:50:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrrzN-0000W6-Cn for emacs-devel@gnu.org; Wed, 26 Jun 2013 11:50:34 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:36663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrrzN-0000Vv-4s for emacs-devel@gnu.org; Wed, 26 Jun 2013 11:50:33 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MP000D00BYU1200@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Wed, 26 Jun 2013 18:50:19 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MP000DSHBZU0X00@a-mtaout22.012.net.il>; Wed, 26 Jun 2013 18:50:19 +0300 (IDT) In-reply-to: <8541.1372238544@theowa.merten-home.homelinux.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:161098 Archived-At: > From: Stefan Merten > Comments: In-reply-to Glenn Morris > message dated "Mon, 24 Jun 2013 13:31:50 -0400." > Date: Wed, 26 Jun 2013 11:22:24 +0200 > > May be I do not understand Lars' intentions here, but what is testing > the C code good for at all? I mean there is an API - or rather: lots > of APIs - and *this* is what needs testing. The C code to me looks > like an implementation detail I'd not write tests for. Or at least > separate those tests clearly from the API tests. You seem to think that every C code in Emacs is part or a subroutine of some Lisp API. But that is false: e.g., the display engine is implemented almost entirely in C. If you have no test harness for testing that, you cannot be sure, for example, that some change didn't break cursor positioning (which happened a lot of time and will most probably happen again, by a sheer coincidence -- or maybe due to something else ;-). Other important parts of Emacs that are implemented almost entirely in C include: . GC . keyboard input . interaction with subprocesses . file I/O There's probably more; these are just off the top of my head.