From: Mattias EngdegÄrd Date: Sun, 1 Jan 2023 12:18:50 +0000 (+0100) Subject: Fix copyright tests for 2023 onwards X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~40^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=595617abab6964ac0c6e617bae3d82692bf298b9;p=emacs.git Fix copyright tests for 2023 onwards This upstream patch has been incorporated to fix the problem: ; * test/lisp/emacs-lisp/copyright-tests.el: Fix and future-safe. Origin: upstream, commit: da77d70deeb2798693ec4f28a291befeb8e43989 Bug-Debian: https://bugs.debian.org/1028607 Forwarded: not-needed --- diff --git a/test/lisp/emacs-lisp/copyright-tests.el b/test/lisp/emacs-lisp/copyright-tests.el index abb0913a0d7..040071d90d0 100644 --- a/test/lisp/emacs-lisp/copyright-tests.el +++ b/test/lisp/emacs-lisp/copyright-tests.el @@ -59,7 +59,8 @@ "\nCopyright 2006, 2007, 2008 Foo Bar\n\n") (copyright-update) (buffer-substring (- (point-max) 42) (point-max)))) - "Copyright 2006, 2007, 2008, 2022 Foo Bar\n\n"))) + (format "Copyright 2006, 2007, 2008, %s Foo Bar\n\n" + (format-time-string "%Y"))))) (ert-deftest test-correct-notice () (should (equal @@ -70,7 +71,8 @@ (copyright-query nil)) (copyright-update)) (buffer-string)) - "Copyright 2021 FSF\nCopyright 2021, 2022 FSF\n"))) + (format "Copyright 2021 FSF\nCopyright 2021, %s FSF\n" + (format-time-string "%Y"))))) (provide 'copyright-tests) ;;; copyright-tests.el ends here