From 233e254bbe44f70ca899a506b3706af489228fda Mon Sep 17 00:00:00 2001 From: aagon Date: Thu, 10 Aug 2023 20:03:52 +0200 Subject: [PATCH] Repair helpful--display-implementations test for emacs 29.1 --- test/helpful-unit-test.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/helpful-unit-test.el b/test/helpful-unit-test.el index 0f5177b..0716b0d 100644 --- a/test/helpful-unit-test.el +++ b/test/helpful-unit-test.el @@ -1089,8 +1089,12 @@ find the source code." (require 'xref) (helpful-function 'xref-location-marker) (should (s-contains-p "Implementations" (buffer-string))) - (should (s-contains-p "((l xref-file-location))" (buffer-string))) - (should (s-contains-p "((l xref-buffer-location))" (buffer-string)))) + (should (if (version< emacs-version "29.1") + (s-contains-p "((l xref-file-location))" (buffer-string)) + (s-contains-p "(xref-location-marker (L xref-file-location))" (buffer-string)))) + (should (if (version< emacs-version "29.1") + (s-contains-p "((l xref-buffer-location))" (buffer-string)) + (s-contains-p "(xref-location-marker (L xref-buffer-location))" (buffer-string))))) (defun helpful--boring-advice (orig-fn &rest args) (apply orig-fn args)) id=0a5b060be1e8966abc45e4782df83447510a90b4'>treecommitdiff
path: root/tests/gnu-maintenance.scm
AgeCommit message (Expand)Author
2023-09-27tests: ‘rewrite-url’ test no longer depends on network access....Fixes <https://issues.guix.gnu.org/66097>. Previously, this test would actually need to access dist.libuv.org. * tests/gnu-maintenance.scm ("rewrite-url, without to-version"): Change URLs from https to http, and from libuv.org to libuv.example.org. Parameterize ‘current-http-proxy’. Reported-by: Janneke Nieuwenhuizen <janneke@gnu.org> Ludovic Courtès
2023-08-26gnu-maintenance: Consider Qt source tarballs as "release files"....* guix/gnu-maintenance.scm (release-file?): Use positive logic in doc. Add a special case for Qt source archives. * tests/gnu-maintenance.scm ("release-file?"): Update test. Maxim Cournoyer
2023-08-26gnu-maintenance: Add support to rewrite version in URL path....Fixes <https://issues.guix.gnu.org/64015>. Fixes <https://issues.guix.gnu.org/65304>. Previously, the generic HTML updater would only look for the list of files found at the parent of its current source URL, ignoring that the URL may embed the version elsewhere in its path. This could cause 'guix refresh' to report no updates available, while in fact there were, such as for 'libuv'. * guix/gnu-maintenance.scm (strip-trailing-slash): New procedure. (%version-rx): New variable. (rewrite-url): New procedure. (import-html-release): New rewrite-url? argument. When true, use the above procedure. (import-html-updatable-release): Call import-html-release with #:rewrite-url set to #t. * tests/gnu-maintenance.scm ("rewrite-url, to-version specified") ("rewrite-url, without to-version"): New tests. Maxim Cournoyer
2023-01-02tests: Fix gnu-maintenance tests....The regression was introduce with commit a274a6a1acb99738f02de7b226e6a0d3883ec353 ("upstream-updater: Rename record field.") * tests/tests/gnu-maintenance.scm: ("latest-html-release, scheme-less URIs", "latest-html-release, no signature", "latest-html-release, signature"): Replace upstream-updater-latest by upstream-updater-import. Reported-by: Ricardo Wurmus <rekado@elephly.net> Hartmut Goebel
2022-11-11gnu-maintenance: 'release-file?' excludes "valgrind-3.20.0.RC1.tar.bz2"....* guix/gnu-maintenance.scm (%alpha-tarball-rx): Add "." before "(alpha|beta|...)". * tests/gnu-maintenance.scm ("release-file?"): Add test for Valgrind. Ludovic Courtès
2022-09-26gnu-maintenance: Test latest-html-release....* tests/gnu-maintenance.scm ("latest-html-release, no signature") ("latest-html-release, signature): New tests. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Maxime Devos
2022-09-17gnu-maintenance: Support // URLs in latest-html-release....This makes "./pre-inst-env guix refresh -u" download the release tarball from the right place -- previously, it downloaded from https://www.libreoffice.org//download.documentfoundation.org/libreoffice/src/7.4.0/libreoffice-7.4.0.3.tar.xz?idx=1 whereas it should download from https://download.documentfoundation.org/libreoffice/src/7.4.0/libreoffice-7.4.0.3.tar.xz?idx=1 instead. * guix/gnu-maintenance.scm (latest-html-release)[url-release]: Adjust computation in the case of an absolute URI-reference without a scheme. * tests/gnu-maintenance.scm ("latest-html-release, scheme-less URIs"): Test it. Signed-off-by: Christopher Baines <mail@cbaines.net> Maxime Devos