From: Lars Ingebrigtsen Date: Sat, 11 Jun 2022 16:15:35 +0000 (+0200) Subject: Make new fileio test more reliable X-Git-Tag: emacs-29.0.90~1910^2~69 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=eec9919b999837128e910d5774ce7a6588ae8886;p=emacs.git Make new fileio test more reliable * test/src/fileio-tests.el: Use a unibyte buffer to avoid length confusion. --- diff --git a/test/src/fileio-tests.el b/test/src/fileio-tests.el index 29f11fc4725..c137ce06f1a 100644 --- a/test/src/fileio-tests.el +++ b/test/src/fileio-tests.el @@ -196,6 +196,7 @@ Also check that an encoding error can appear in a symlink." (ert-deftest fileio-tests--non-regular-insert () (skip-unless (file-exists-p "/dev/urandom")) (with-temp-buffer + (set-buffer-multibyte nil) (should-error (insert-file-contents "/dev/urandom" nil 5 10)) (insert-file-contents "/dev/urandom" nil nil 10) (should (= (buffer-size) 10))))