From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: ob-sed-test failure introduced by f38f83b4 Date: Mon, 11 Jul 2016 22:30:46 +0200 Message-ID: <87furfdiix.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMhrB-0002fA-5g for emacs-orgmode@gnu.org; Mon, 11 Jul 2016 16:31:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMhqy-0002SQ-OI for emacs-orgmode@gnu.org; Mon, 11 Jul 2016 16:31:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:37498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMhqy-0002Rz-Fp for emacs-orgmode@gnu.org; Mon, 11 Jul 2016 16:30:56 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bMhqu-0004JE-Ci for emacs-orgmode@gnu.org; Mon, 11 Jul 2016 22:30:52 +0200 Received: from p4ff1dc3b.dip0.t-ipconnect.de ([79.241.220.59]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jul 2016 22:30:52 +0200 Received: from Stromeko by p4ff1dc3b.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jul 2016 22:30:52 +0200 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" To: emacs-orgmode@gnu.org Two of the three ob-sed tests are failing after commit f38f83b4, but only in batch mode. It seems the final newline gets eaten somewhere, leading to the string= howling in protest. When I run the code in question interactively, it works as expected (result shown in minibuffer is a string _with_ the final newline). I can't figure out why the particular commit is having that effect, but it seems to have changed some accidental setting that the sed tests were relying on. --8<---------------cut here---------------start------------->8--- Test ob-sed-test/in-file-header-argument condition: (ert-test-failed ((should (string= "A tested file. " (org-babel-execute-src-block))) :form (string= "A tested file. " "A tested file.") :value nil)) FAILED 2/3 ob-sed-test/in-file-header-argument --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- Test ob-sed-test/simple-execution-of-script condition: (ert-test-failed ((should (string= "A processed sentence. " (org-babel-execute-src-block))) :form (string= "A processed sentence. " "A processed sentence.") :value nil)) FAILED 3/3 ob-sed-test/simple-execution-of-script --8<---------------cut here---------------end--------------->8--- Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf rackAttack: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds