emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/buttercup 686b817659 2/6: Always set native-comp-enable-su


From: ELPA Syncer
Subject: [nongnu] elpa/buttercup 686b817659 2/6: Always set native-comp-enable-subr-trampolines to nil before running tests
Date: Thu, 9 Mar 2023 18:00:42 -0500 (EST)

branch: elpa/buttercup
commit 686b8176598927662718b8f572db269358d377e8
Author: Sergio Durigan Junior <sergiodj@sergiodj.net>
Commit: Sergio Durigan Junior <sergiodj@sergiodj.net>

    Always set native-comp-enable-subr-trampolines to nil before running tests
    
    For more information, see
    https://lists.gnu.org/archive/html/bug-gnu-emacs/2023-02/msg02464.html.
    
    Closes #230
    
    Signed-off-by: Sergio Durigan Junior <sergiodj@sergiodj.net>
---
 buttercup.el | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/buttercup.el b/buttercup.el
index ade4595aa2..abcc0e3278 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -1586,10 +1586,12 @@ Signal an error if any spec fail or if no suites have 
been
 defined. Signal no errors if NOERROR is non-nil. Return t if all
 specs pass, nil if at least one spec fail, and :no-suites if no suites
 have been defined."
-  (if buttercup-suites
-      (buttercup--run-suites buttercup-suites noerror)
-    (or (and noerror :no-suites)
-        (error "No suites defined"))))
+  ;; See https://github.com/jorgenschaefer/emacs-buttercup/issues/230.
+  (let ((native-comp-enable-subr-trampolines nil))
+    (if buttercup-suites
+        (buttercup--run-suites buttercup-suites noerror)
+      (or (and noerror :no-suites)
+          (error "No suites defined")))))
 
 (define-error 'buttercup-run-specs-failed "buttercup-run failed" 
'buttercup-error-base)
 



reply via email to

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