From 9e7ceaa93ab2a794bd0223bbec0d40a90aecc09c Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Fri, 9 Sep 2022 10:31:25 +0200 Subject: [PATCH] Fix SVG test for old librsvg * test/manual/image-tests.el (image-tests-load-image/svg-invalid): Match error message in old versions of librsvg. (Bug#57691) --- test/manual/image-tests.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/manual/image-tests.el b/test/manual/image-tests.el index c726845bd3..8f6476f3e2 100644 --- a/test/manual/image-tests.el +++ b/test/manual/image-tests.el @@ -86,8 +86,9 @@ image-tests-load-image/svg-invalid "invalid foo bar" :type svg))) (redisplay)) + ;; librsvg error: "... Start tag expected, '<' not found [3 times]" (with-current-buffer "*Messages*" - (should (string-search "XML parse error" (buffer-string))))) + (should (string-match "[Ee]rror.+Start tag expected" (buffer-string))))) ;;;; image-test-size -- 2.30.2