emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master eec9919b99: Make new fileio test more reliable


From: Lars Ingebrigtsen
Subject: master eec9919b99: Make new fileio test more reliable
Date: Sat, 11 Jun 2022 12:15:51 -0400 (EDT)

branch: master
commit eec9919b999837128e910d5774ce7a6588ae8886
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Make new fileio test more reliable
    
    * test/src/fileio-tests.el: Use a unibyte buffer to avoid length
    confusion.
---
 test/src/fileio-tests.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/src/fileio-tests.el b/test/src/fileio-tests.el
index 29f11fc472..c137ce06f1 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))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]