Skip to content

Commit

Permalink
Fix the tests added in commit 810b363 to pass on Windows too.
Browse files Browse the repository at this point in the history
  • Loading branch information
doublep committed Apr 30, 2024
1 parent 810b363 commit fc19649
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/basics.el
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,14 @@
(ert-deftest eldev-unknown-global-option ()
(eldev--test-run "empty-project" ("--there-is-no-such-global-option" "info")
(should (string-match "there-is-no-such-global-option" stderr))
(should (string-match "eldev help" stderr))
;; `.*' is for Windows, where the executable is named `eldev.bat'.
(should (string-match "eldev.* help" stderr))
(should (= exit-code 1))))

(ert-deftest eldev-unknown-command-option ()
(eldev--test-run "empty-project" ("info" "--there-is-no-such-command-option")
(should (string-match "there-is-no-such-command-option" stderr))
(should (string-match "eldev help info" stderr))
(should (string-match "eldev.* help info" stderr))
(should (= exit-code 1))))


Expand Down

0 comments on commit fc19649

Please sign in to comment.