branch: externals/compat commit e62ac7fed32b7de7f5dc5c627eb4e651801b71a9 Author: Philip Kaludercic <phil...@posteo.net> Commit: Philip Kaludercic <phil...@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.