]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix two wallpaper tests
authorStefan Kangas <stefankangas@gmail.com>
Sat, 1 Oct 2022 20:38:58 +0000 (22:38 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Sat, 1 Oct 2022 20:38:58 +0000 (22:38 +0200)
* test/lisp/image/wallpaper-tests.el
(wallpaper--find-command/return-string)
(wallpaper--find-command-args/return-list): Fix tests.

test/lisp/image/wallpaper-tests.el

index c3feab0e20653d31a4407c6a5cf60dbbe43d02ca..52011fe797340f947f7fa068c9f0734ae36d0b6b 100644 (file)
 (require 'wallpaper)
 
 (ert-deftest wallpaper--find-command/return-string ()
-  (should (and (wallpaper--find-command)
-               (stringp (wallpaper--find-command)))))
+  (should (or (not (wallpaper--find-command))
+              (stringp (wallpaper--find-command)))))
 
 (ert-deftest wallpaper--find-command-args/return-list ()
-  (should (and (wallpaper--find-command-args)
-               (listp (wallpaper--find-command-args)))))
+  (should (or (not (wallpaper--find-command-args))
+              (listp (wallpaper--find-command-args)))))
 
 (ert-deftest wallpaper--image-file-regexp/return-string ()
   (should (stringp (wallpaper--image-file-regexp))))