From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.bugs Subject: bug#8377: 23.2; compile regexp for perl Test.pm "fail #N" Date: Wed, 30 Mar 2011 08:19:25 +1100 Message-ID: <87ei5pwroi.fsf@blah.blah> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1301434650 7329 80.91.229.12 (29 Mar 2011 21:37:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2011 21:37:30 +0000 (UTC) To: 8377@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 29 23:37:25 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4gbK-0004Pa-So for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Mar 2011 23:37:23 +0200 Original-Received: from localhost ([127.0.0.1]:32799 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4gbK-0001nl-Gx for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Mar 2011 17:37:22 -0400 Original-Received: from [140.186.70.92] (port=47740 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4gbC-0001mD-Vs for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2011 17:37:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4gbB-0005km-MV for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2011 17:37:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4gbB-0005ki-JX for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2011 17:37:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q4gJZ-0001oL-N0; Tue, 29 Mar 2011 17:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kevin Ryde Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Mar 2011 21:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8377 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13014335386949 (code B ref -1); Tue, 29 Mar 2011 21:19:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Mar 2011 21:18:58 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4gJV-0001o2-N2 for submit@debbugs.gnu.org; Tue, 29 Mar 2011 17:18:57 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4gJS-0001nq-U6 for submit@debbugs.gnu.org; Tue, 29 Mar 2011 17:18:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4gJM-0002Y9-Nu for submit@debbugs.gnu.org; Tue, 29 Mar 2011 17:18:49 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:49597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4gJM-0002Y5-LI for submit@debbugs.gnu.org; Tue, 29 Mar 2011 17:18:48 -0400 Original-Received: from [140.186.70.92] (port=42939 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4gJL-0000U7-Hq for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2011 17:18:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4gJK-0002XO-6A for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2011 17:18:47 -0400 Original-Received: from mailout1-16.pacific.net.au ([125.255.80.135]:55909 helo=mailout1.pacific.net.au) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4gJJ-0002WZ-Lg for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2011 17:18:46 -0400 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout1.pacific.net.au (Postfix) with ESMTP id A568B5F03E6 for ; Wed, 30 Mar 2011 08:18:39 +1100 (EST) Original-Received: from blah.blah (unknown [203.26.175.75]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id A0D1727411 for ; Wed, 30 Mar 2011 08:18:38 +1100 (EST) Original-Received: from gg by blah.blah with local (Exim 4.72) (envelope-from ) id 1Q4gJx-0003e0-Dg for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2011 08:19:25 +1100 User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 29 Mar 2011 17:19:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45486 Archived-At: --=-=-= For the compile.el error regexps, perl's Test.pm can add a "fail #N" if a given test line is run more than once, in a loop or subr. The `perl--Test2' could match that per below. (Still no good on bzr, so individual diffs.) 2011-03-29 Kevin Ryde * progmodes/compile.el (compilation-error-regexp-alist-alist): `perl-Test2' extend to match possible "fail #N" rep count. 2011-03-29 Kevin Ryde * compilation.txt (perl-Test2): New samples. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=compile.el.Test2-fail.diff --- compile.el.orig 2011-03-30 08:08:05.000000000 +1100 +++ compile.el 2011-03-30 08:08:32.000000000 +1100 @@ -381,15 +381,16 @@ "^# Failed test [0-9]+ in \\([^ \t\r\n]+\\) at line \\([0-9]+\\)" 1 2) (perl--Test2 - ;; Or when comparing got/want values, + ;; Or when comparing got/want values, with a "fail #n" if repeated ;; # Test 2 got: "xx" (t-compilation-perl-2.t at line 10) + ;; # Test 3 got: "xx" (t-compilation-perl-2.t at line 10 fail #2) ;; ;; And under Test::Harness they're preceded by progress stuff with ;; \r and "NOK", ;; ... NOK 1# Test 1 got: "1234" (t/foo.t at line 46) ;; "^\\(.*NOK.*\\)?# Test [0-9]+ got:.* (\\([^ \t\r\n]+\\) at line \ -\\([0-9]+\\))" +\\([0-9]+\\)\\( fail #[0-9]+\\)?)" 2 3) (perl--Test::Harness ;; perl Test::Harness output, eg. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=compilation.txt.Test2-fail.diff --- compilation.txt.orig 2011-03-30 08:08:25.000000000 +1100 +++ compilation.txt 2011-03-30 08:08:37.000000000 +1100 @@ -496,6 +496,16 @@ # Failed test 1 in foo.t at line 6 +* Perl Test.pm module error messages comparing two values + +symbol: perl--Test2 + +# Test 3 got: "99" (d-compilation-perl.t at line 29) +# Expected: "88" (my test name) +# d-compilation-perl.t line 29 is: ok(99,88,'my test name'); + +# Test 6 got: "xx" (foo.t at line 33 fail #2) +# Expected: "yy" * Perl Test::Harness output --=-=-= In GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-05-16 on raven, modified by Debian configured using `configure '--build' 'i486-linux-gnu' '--build' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.2/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_AU value of $XMODIFIERS: nil locale-coding-system: iso-latin-1-unix default enable-multibyte-characters: t --=-=-=--