; Re-enable the /dev/urandom test

* test/src/fileio-tests.el (fileio-tests--non-regular-insert):
Remove :unstable, but comment out the single failing test.
This commit is contained in:
Eli Zaretskii 2023-08-09 07:25:59 -04:00
parent ff21717f05
commit 7e3c616086

View file

@ -194,12 +194,11 @@ Also check that an encoding error can appear in a symlink."
(should (equal (file-name-concat "" "") ""))) (should (equal (file-name-concat "" "") "")))
(ert-deftest fileio-tests--non-regular-insert () (ert-deftest fileio-tests--non-regular-insert ()
;; Fails in Emacs 29 because /dev/urandom is typically seekable (bug#65156)
:tags '(:unstable)
(skip-unless (file-exists-p "/dev/urandom")) (skip-unless (file-exists-p "/dev/urandom"))
(with-temp-buffer (with-temp-buffer
(set-buffer-multibyte nil) (set-buffer-multibyte nil)
(should-error (insert-file-contents "/dev/urandom" nil 5 10)) ;; Fails in Emacs 29 because /dev/urandom is typically seekable (bug#65156)
;(should-error (insert-file-contents "/dev/urandom" nil 5 10))
(insert-file-contents "/dev/urandom" nil nil 10) (insert-file-contents "/dev/urandom" nil nil 10)
(should (= (buffer-size) 10)))) (should (= (buffer-size) 10))))