aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorAndrea Corallo2020-04-23 08:41:15 +0100
committerAndrea Corallo2020-04-23 08:41:15 +0100
commit301cf0d27892f76b7967d7f71d48a1899c27d477 (patch)
tree54b69e63a34b5df6324b4f93ee2c7ae1406bd9e0 /test/src
parent65cc8efa333bbb66acd7b19f4b39c3138995e864 (diff)
parent7b15cc3ebb45e50ac5faf3bbc2a813afffdaa418 (diff)
downloademacs-301cf0d27892f76b7967d7f71d48a1899c27d477.tar.gz
emacs-301cf0d27892f76b7967d7f71d48a1899c27d477.zip
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'test/src')
-rw-r--r--test/src/buffer-tests.el14
-rw-r--r--test/src/thread-tests.el2
2 files changed, 15 insertions, 1 deletions
diff --git a/test/src/buffer-tests.el b/test/src/buffer-tests.el
index 1c356698f66..6e87cb94897 100644
--- a/test/src/buffer-tests.el
+++ b/test/src/buffer-tests.el
@@ -1313,4 +1313,18 @@ with parameters from the *Messages* buffer modification."
1313 (ovshould nonempty-eob-end 4 5) 1313 (ovshould nonempty-eob-end 4 5)
1314 (ovshould empty-eob 5 5))))) 1314 (ovshould empty-eob 5 5)))))
1315 1315
1316(ert-deftest buffer-multibyte-overlong-sequences ()
1317 (dolist (uni '("\xE0\x80\x80"
1318 "\xF0\x80\x80\x80"
1319 "\xF8\x8F\xBF\xBF\x80"))
1320 (let ((multi (string-to-multibyte uni)))
1321 (should
1322 (string-equal
1323 multi
1324 (with-temp-buffer
1325 (set-buffer-multibyte nil)
1326 (insert uni)
1327 (set-buffer-multibyte t)
1328 (buffer-string)))))))
1329
1316;;; buffer-tests.el ends here 1330;;; buffer-tests.el ends here
diff --git a/test/src/thread-tests.el b/test/src/thread-tests.el
index 6673ac4b4eb..5d85fc74e50 100644
--- a/test/src/thread-tests.el
+++ b/test/src/thread-tests.el
@@ -112,7 +112,7 @@
112 (should-error (thread-join (current-thread)))) 112 (should-error (thread-join (current-thread))))
113 113
114(ert-deftest threads-join-error () 114(ert-deftest threads-join-error ()
115 "Test of error signalling from `thread-join'." 115 "Test of error signaling from `thread-join'."
116 :tags '(:unstable) 116 :tags '(:unstable)
117 (skip-unless (featurep 'threads)) 117 (skip-unless (featurep 'threads))
118 (let ((thread (make-thread #'threads-call-error))) 118 (let ((thread (make-thread #'threads-call-error)))