]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix SVG loading test for old librsvg 2.40.1
authorStefan Kangas <stefankangas@gmail.com>
Fri, 9 Sep 2022 12:19:32 +0000 (14:19 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Fri, 9 Sep 2022 12:24:51 +0000 (14:24 +0200)
* test/manual/image-tests.el (image-tests-load-image/svg-invalid): Fix
test for old librsvg 2.40.1.  (Bug#57691)

test/manual/image-tests.el

index 9cb98252f6a1aa681598e5411436106c88853c76..c66080cf029230005fe700d38656a18659f472d3 100644 (file)
@@ -88,7 +88,8 @@
                                              "invalid foo bar"
                                              :type svg)))
         (redisplay))
-      (should (string-search "XML parse error" (buffer-string))))))
+      ;; librsvg error: "... Start tag expected, '<' not found [3 times]"
+      (should (string-match "[Ee]rror.+Start tag expected" (buffer-string))))))
 
 \f
 ;;;; image-test-size