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
This commit is contained in:
Ihor Radchenko 2023-01-23 13:24:27 +03:00
parent e37e9b692e
commit 59228e5134
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 2 additions and 4 deletions

View File

@ -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)