]> git.eshelyaron.com Git - emacs.git/commitdiff
add comp-tests-signal
authorAndrea Corallo <akrl@sdf.org>
Sun, 17 Nov 2019 06:26:14 +0000 (07:26 +0100)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:38:07 +0000 (11:38 +0100)
test/src/comp-test-funcs.el
test/src/comp-tests.el

index 214e07e6dde1c77fb77da4f2e45027a5061ebe7a..3ba12dc2a6ac38f655e1c32ee3be318846443c59 100644 (file)
 (defun comp-tests-trampoline-removal-f ()
   (make-hash-table))
 
+(defun comp-tests-signal-f ()
+  (signal 'foo t))
+
+\f
 ;;;;;;;;;;;;;;;;;;;;
 ;; Tromey's tests ;;
 ;;;;;;;;;;;;;;;;;;;;
index 2a4c849a7c8211a768aa2996c50096abcfe1bfed..a76a4a8c469afe59e73d436f2b5e219d60ddb996 100644 (file)
@@ -308,6 +308,12 @@ Check that the resulting binaries do not differ."
   ;; At speed >= 2 the trampoline will not be used.
   (should (hash-table-p (comp-tests-trampoline-removal-f))))
 
+(ert-deftest comp-tests-signal ()
+  (should (equal (condition-case err
+                     (comp-tests-signal-f)
+                   (t err))
+                 '(foo . t))))
+\f
 ;;;;;;;;;;;;;;;;;;;;
 ;; Tromey's tests ;;
 ;;;;;;;;;;;;;;;;;;;;