branch: externals/org
commit 61faa0d762279a43043781dced0d231535c3fba9
Merge: fbaef0ebbc c2cb0c3232
Author: Ihor Radchenko <[email protected]>
Commit: Ihor Radchenko <[email protected]>

    Merge branch 'bugfix'
---
 testing/lisp/test-ob-maxima.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/testing/lisp/test-ob-maxima.el b/testing/lisp/test-ob-maxima.el
index 49bf48c68c..37ddb2f892 100644
--- a/testing/lisp/test-ob-maxima.el
+++ b/testing/lisp/test-ob-maxima.el
@@ -165,8 +165,9 @@ Send empty input line to Maxima."
 ;
 #+end_src
 ")
+    (should (equal "" (org-babel-execute-src-block)))
     (should (string-match "incorrect syntax: Premature termination of input at 
;\\."
-                          (org-babel-execute-src-block)))))
+                          (with-current-buffer org-babel-error-buffer-name 
(buffer-string))))))
 
 (ert-deftest ob-maxima/batch+verbatim+eof-error ()
   "Exercise the `:batch' header argument with syntax error.
@@ -177,8 +178,9 @@ Send an incomplete expression to Maxima."
 x:
 #+end_src
 ")
+    (should (equal "" (org-babel-execute-src-block)))
     (should (string-match "end of file while scanning expression\\."
-                          (org-babel-execute-src-block)))))
+                          (with-current-buffer org-babel-error-buffer-name 
(buffer-string))))))
 
 
 

Reply via email to