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

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

[elpa] externals/compat e62ac7fed3 3/3: Disable (current-time) tests for


From: ELPA Syncer
Subject: [elpa] externals/compat e62ac7fed3 3/3: Disable (current-time) tests for time-equal-p
Date: Sun, 5 Jun 2022 10:57:25 -0400 (EDT)

branch: externals/compat
commit e62ac7fed32b7de7f5dc5c627eb4e651801b71a9
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Disable (current-time) tests for time-equal-p
---
 compat-tests.el | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/compat-tests.el b/compat-tests.el
index d4064246d3..09a135fea4 100644
--- a/compat-tests.el
+++ b/compat-tests.el
@@ -1687,8 +1687,15 @@ being compared against."
 
 (compat-deftest time-equal-p
   (ought t nil nil)
-  (ought t (current-time) nil)
-  (ought t nil (current-time))
+
+  ;; FIXME: Testing these values can be tricky, because the timestamp
+  ;; might change between evaluating (current-time) and evaluating
+  ;; `time-equal-p', especially in the interpreted compatibility
+  ;; version.
+
+  ;; (ought t (current-time) nil)
+  ;; (ought t nil (current-time))
+
   ;; While `sleep-for' returns nil, indicating the current time, this
   ;; behaviour seems to be undefined.  Relying on it is therefore not
   ;; advised.



reply via email to

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