From 800ed532d272f31af76d57f9bc4b57af3ae0b994 Mon Sep 17 00:00:00 2001 From: Simon Tournier Date: Fri, 27 Oct 2023 01:41:26 +0200 Subject: [PATCH] gnu: emacs-julia-mode: Exclude tests that fail with Emacs 29. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/emacs-xyz.scm (emacs-julia-mode)[#:phases]: Add ‘fix-tests’. Change-Id: I1da1077a7e7e077392458243b2d3cd44592ebd45 Signed-off-by: Liliana Marie Prikler --- gnu/packages/emacs-xyz.scm | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 10c4b0a636..0e879391b8 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -95,7 +95,7 @@ ;;; Copyright © 2021 Alexey Abramov ;;; Copyright © 2021 Xinglu Chen ;;; Copyright © 2021, 2022 Stefan Reichör -;;; Copyright © 2021, 2022 Simon Tournier +;;; Copyright © 2021, 2022, 2023 Simon Tournier ;;; Copyright © 2021 Eugene Klimov ;;; Copyright © 2021 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2021 David Dashyan @@ -13603,7 +13603,17 @@ E-Prime forbids the use of the \"to be\" form to strengthen your writing.") `(#:tests? #t #:test-command '("emacs" "--batch" "-l" "julia-mode-tests.el" - "-f" "ert-run-tests-batch-and-exit"))) + "-f" "ert-run-tests-batch-and-exit") + #:phases + (modify-phases %standard-phases + (add-before 'check 'fix-test + (lambda _ + (substitute* "julia-mode-tests.el" + ;; The test started failing with Emacs 29; see + ;; + ;; and discrepancy reported . + (("julia--test-end-of-defun-nested-2.*" all) + (string-append all " :expected-result :failed\n")))))))) (home-page "https://github.com/JuliaEditorSupport/julia-emacs") (synopsis "Major mode for Julia") (description "This Emacs package provides a mode for the Julia