]> git.eshelyaron.com Git - emacs.git/commitdiff
Make new fileio test more reliable
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 11 Jun 2022 16:15:35 +0000 (18:15 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 11 Jun 2022 16:15:35 +0000 (18:15 +0200)
* test/src/fileio-tests.el: Use a unibyte buffer to avoid length
confusion.

test/src/fileio-tests.el

index 29f11fc4725eda8993c13bc18d19c7fa2403d735..c137ce06f1a3c981e194fcf6b4bb917bab974b37 100644 (file)
@@ -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))))