From 59228e51345ab522d9db611c8e73caa078d86d2f Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Mon, 23 Jan 2023 13:24:27 +0300 Subject: [PATCH] test-ob-octave: Fix tests failing on Debian CI * testing/lisp/test-ob-octave.el (ob-octave/graphics-file): (ob-octave/graphics-file-session): Do not assert that octave must not emit warnings. Just test the file created by side effect. We currently have no reliable way to disambiguate warnings from non-zero exit code when using `org-babel-eval'. Warnings are ok, as long as they do not result in the file not being created in the test. Link: https://orgmode.org/list/87mt6m5n6u.fsf@localhost --- testing/lisp/test-ob-octave.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/testing/lisp/test-ob-octave.el b/testing/lisp/test-ob-octave.el index 0b8ecea3b..676a8a325 100644 --- a/testing/lisp/test-ob-octave.el +++ b/testing/lisp/test-ob-octave.el @@ -78,8 +78,7 @@ sombrero; file) (org-babel-execute-src-block) (should (search-forward (format "[[file:%s]]" file) nil nil)) - (should (file-readable-p file)) - (should-not (buffer-live-p (get-buffer "*Org-Babel Error Output*")))) + (should (file-readable-p file))) ;; clean-up (delete-file file) (when (get-buffer "*Org-Babel Error Output*") @@ -98,8 +97,7 @@ sombrero; (org-babel-execute-src-block) (should (get-buffer "*Inferior Octave*")) (should (search-forward (format "[[file:%s]]" file) nil nil)) - (should (file-readable-p file)) - (should-not (buffer-live-p (get-buffer "*Org-Babel Error Output*")))) + (should (file-readable-p file))) ;; clean-up (delete-file file) (let (kill-buffer-query-functions kill-buffer-hook)