From b60406b5d64354e78b7c3b80ea0e5756978353ec Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Wed, 25 Sep 2024 20:27:27 +0200 Subject: Update ebuild-mode-time-string test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * test/ebuild-mode-tests.el (ebuild-mode-test-time-string): Run with fixed time. Signed-off-by: Ulrich Müller --- ChangeLog | 3 +++ test/ebuild-mode-tests.el | 10 ++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 892e729..2054f51 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2024-09-25 Ulrich Müller + * test/ebuild-mode-tests.el (ebuild-mode-test-time-string): + Run with fixed time. + * ebuild-mode.el (ebuild-mode-arch-list): Remove ia64. 2024-09-10 Ulrich Müller diff --git a/test/ebuild-mode-tests.el b/test/ebuild-mode-tests.el index a12c4ee..e714796 100644 --- a/test/ebuild-mode-tests.el +++ b/test/ebuild-mode-tests.el @@ -62,12 +62,10 @@ (should (ebuild-mode-arch-lessp "x86-linux" "ppc-macos"))) (ert-deftest ebuild-mode-test-time-string () - (should (string-equal - (ebuild-mode-time-string "%Y-%m-%d %H:%M:%S" '(14257 22633)) - "1999-08-11 11:03:05")) - (should (string-equal - (ebuild-mode-time-string "%Y-%m-%d %H:%M:%S" '(33451 44363)) - "2039-06-21 17:11:39"))) + (ebuild-mode-test-run-with-fixed-time + (should (string-equal + (ebuild-mode-time-string "%Y-%m-%d %H:%M:%S") + "2024-08-10 00:00:00")))) (ert-deftest ebuild-mode-test-font-lock () (with-temp-buffer -- cgit v1.2.3-65-gdbad