From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martyn Jago Subject: Re: [patch][babel] test fix - was: Add test-run capability to Makefile Date: Thu, 05 Jan 2012 18:43:26 +0000 Message-ID: References: <87ipkq1neq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RisI7-0006CI-D8 for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 13:43:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RisI6-0006pk-7C for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 13:43:55 -0500 Received: from lo.gmane.org ([80.91.229.12]:59373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RisI5-0006pf-T5 for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 13:43:54 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RisI4-0007xE-I5 for emacs-orgmode@gnu.org; Thu, 05 Jan 2012 19:43:52 +0100 Received: from 88-96-171-138.dsl.zen.co.uk ([88.96.171.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Jan 2012 19:43:52 +0100 Received: from martyn.jago by 88-96-171-138.dsl.zen.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Jan 2012 19:43:52 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Martyn Jago writes: [...] > > However before you test it could you consider applying the following > patch. It is a fix to a relative character position offset change of 2 > caused by the trailing whitespace cleanup (my bad for leaving dirty test > data)! > [...] This patch seems to have been overlooked, and is still failing - my bad for tagging it to the end of this thread. Here it is again just in case. Best, Martyn --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Fix-to-test-org-babel-org-babel-get-inline-src-block.patch Content-Description: inline-src-block-test-fix >From 2327ec34fa8f29ea2aa03194a99ee535fefc3c94 Mon Sep 17 00:00:00 2001 From: Martyn Jago Date: Wed, 4 Jan 2012 21:09:46 +0000 Subject: [PATCH] Fix to test-org-babel/org-babel-get-inline-src-block-matches. * testing/lisp/test-ob.el: Character position offset -=2 to account for removal of trailing spaces --- testing/lisp/test-ob.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/testing/lisp/test-ob.el b/testing/lisp/test-ob.el index 5f42dbb..dac6866 100644 --- a/testing/lisp/test-ob.el +++ b/testing/lisp/test-ob.el @@ -247,7 +247,7 @@ this is simple" (let ((test-point (point))) (should (fboundp 'org-babel-get-inline-src-block-matches)) (should (re-search-forward "src_" nil t)) ;; 1 - (should (= (+ test-point 140) (match-end 0))) + (should (= (+ test-point 138) (match-end 0))) (should (org-babel-get-inline-src-block-matches)) (should (re-search-forward "}" nil (point-at-bol))) ;; 1 (should-not (org-babel-get-inline-src-block-matches)) -- 1.7.3.4 --=-=-=--