aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
Diffstat (limited to 'test/src')
-rw-r--r--test/src/fileio-tests.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/src/fileio-tests.el b/test/src/fileio-tests.el
index 511490c5745..a9a43781d49 100644
--- a/test/src/fileio-tests.el
+++ b/test/src/fileio-tests.el
@@ -193,4 +193,11 @@ Also check that an encoding error can appear in a symlink."
193 (should (equal (file-name-concat "" "bar") "bar")) 193 (should (equal (file-name-concat "" "bar") "bar"))
194 (should (equal (file-name-concat "" "") ""))) 194 (should (equal (file-name-concat "" "") "")))
195 195
196(defun test-non-regular-insert ()
197 (skip-unless (file-exists-p "/dev/urandom"))
198 (with-temp-buffer
199 (should-error (insert-file-contents "/dev/urandom" nil 5 10))
200 (insert-file-contents "/dev/urandom" nil nil 10)
201 (should (= (point-max) 10))))
202
196;;; fileio-tests.el ends here 203;;; fileio-tests.el ends here