summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2024-09-25 20:27:27 +0200
committerUlrich Müller <ulm@gentoo.org>2024-09-25 20:27:27 +0200
commitb60406b5d64354e78b7c3b80ea0e5756978353ec (patch)
tree55776cbc37bf9befe2ef9a86105e9a0afb8f17d4 /test
parentRemove ia64 from list of archs (diff)
downloadebuild-mode-b60406b5d64354e78b7c3b80ea0e5756978353ec.tar.gz
ebuild-mode-b60406b5d64354e78b7c3b80ea0e5756978353ec.tar.bz2
ebuild-mode-b60406b5d64354e78b7c3b80ea0e5756978353ec.zip
Update ebuild-mode-time-string test
* test/ebuild-mode-tests.el (ebuild-mode-test-time-string): Run with fixed time. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'test')
-rw-r--r--test/ebuild-mode-tests.el10
1 files changed, 4 insertions, 6 deletions
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