emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs-26 17ebb6e 2/2: Use consistent function names in thr


From: Michael Albinus
Subject: [Emacs-diffs] emacs-26 17ebb6e 2/2: Use consistent function names in thread-tests.el
Date: Fri, 13 Jul 2018 08:28:28 -0400 (EDT)

branch: emacs-26
commit 17ebb6e5ae9cdd2586d1b4d6f2347ae09c6f653f
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>

    Use consistent function names in thread-tests.el
    
    * test/src/thread-tests.el (threads-call-error, threads-custom)
    (threads-errors, threads-sticky-point, threads-signal-early):
    Rename, using naming convention to prefix with "threads-".
---
 test/src/thread-tests.el | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/test/src/thread-tests.el b/test/src/thread-tests.el
index 3c7fde3..a00a9c8 100644
--- a/test/src/thread-tests.el
+++ b/test/src/thread-tests.el
@@ -253,31 +253,32 @@
      (string= "hi bob"
              (condition-name (make-condition-variable (make-mutex)
                                                       "hi bob")))))
-(defun call-error ()
+
+(defun threads-call-error ()
   "Call `error'."
   (error "Error is called"))
 
 ;; This signals an error internally; the error should be caught.
-(defun thread-custom ()
-  (defcustom thread-custom-face 'highlight
+(defun threads-custom ()
+  (defcustom threads-custom-face 'highlight
     "Face used for thread customizations."
     :type 'face
     :group 'widget-faces))
 
-(ert-deftest thread-errors ()
+(ert-deftest threads-errors ()
   "Test what happens when a thread signals an error."
   (skip-unless (featurep 'threads))
   (let (th1 th2)
-    (setq th1 (make-thread #'call-error "call-error"))
+    (setq th1 (make-thread #'threads-call-error "call-error"))
     (should (threadp th1))
     (while (thread-alive-p th1)
       (thread-yield))
     (should (equal (thread-last-error)
                    '(error "Error is called")))
-    (setq th2 (make-thread #'thread-custom "thread-custom"))
+    (setq th2 (make-thread #'threads-custom "threads-custom"))
     (should (threadp th2))))
 
-(ert-deftest thread-sticky-point ()
+(ert-deftest threads-sticky-point ()
   "Test bug #25165 with point movement in cloned buffer."
   (skip-unless (featurep 'threads))
   (with-temp-buffer
@@ -288,7 +289,7 @@
     (sit-for 1)
     (should (= (point) 21))))
 
-(ert-deftest thread-signal-early ()
+(ert-deftest threads-signal-early ()
   "Test signaling a thread as soon as it is started by the OS."
   (skip-unless (featurep 'threads))
   (let ((thread



reply via email to

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