* test/manual/image-tests.el (image-tests-load-image/svg-invalid):
Clean up.
(ert-deftest image-tests-load-image/svg-invalid ()
(with-temp-buffer
- (pop-to-buffer (current-buffer))
- (insert (propertize " "
- 'display '(image :data
- "invalid foo bar"
- :type svg)))
- (redisplay))
- (with-current-buffer "*Messages*"
- (should (string-search "XML parse error" (buffer-string)))))
+ (let ((messages-buffer-name (buffer-name (current-buffer))))
+ (with-temp-buffer
+ (pop-to-buffer (current-buffer))
+ (insert (propertize " "
+ 'display '(image :data
+ "invalid foo bar"
+ :type svg)))
+ (redisplay))
+ (should (string-search "XML parse error" (buffer-string))))))
\f
;;;; image-test-size