diff options
| author | Lars Ingebrigtsen | 2022-06-11 18:15:35 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-06-11 18:15:35 +0200 |
| commit | eec9919b999837128e910d5774ce7a6588ae8886 (patch) | |
| tree | 7912a05a0c8dc0dedba1ca90ee30f650ad50f867 /test/src | |
| parent | c3138ba1b1742422c62c889e75a7ddda9319a2c6 (diff) | |
| download | emacs-eec9919b999837128e910d5774ce7a6588ae8886.tar.gz emacs-eec9919b999837128e910d5774ce7a6588ae8886.zip | |
Make new fileio test more reliable
* test/src/fileio-tests.el: Use a unibyte buffer to avoid length
confusion.
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/fileio-tests.el | 1 |
1 files changed, 1 insertions, 0 deletions
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." | |||
| 196 | (ert-deftest fileio-tests--non-regular-insert () | 196 | (ert-deftest fileio-tests--non-regular-insert () |
| 197 | (skip-unless (file-exists-p "/dev/urandom")) | 197 | (skip-unless (file-exists-p "/dev/urandom")) |
| 198 | (with-temp-buffer | 198 | (with-temp-buffer |
| 199 | (set-buffer-multibyte nil) | ||
| 199 | (should-error (insert-file-contents "/dev/urandom" nil 5 10)) | 200 | (should-error (insert-file-contents "/dev/urandom" nil 5 10)) |
| 200 | (insert-file-contents "/dev/urandom" nil nil 10) | 201 | (insert-file-contents "/dev/urandom" nil nil 10) |
| 201 | (should (= (buffer-size) 10)))) | 202 | (should (= (buffer-size) 10)))) |