]> git.eshelyaron.com Git - emacs.git/commit
Fix Eshell tests on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Sun, 9 Jun 2024 07:56:39 +0000 (10:56 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Jun 2024 09:52:45 +0000 (11:52 +0200)
commitd29a79aa895a33f316d352c67e09efaaebec6255
treee8cc8c5d251bf1e5790950c83869d944f1afed46
parent8249eb4ac28a5643c930acba9997e77b1b7e5ddb
Fix Eshell tests on MS-Windows

* lisp/eshell/esh-util.el (eshell-get-path): Don't add "." if it
is already there.

* test/lisp/eshell/esh-var-tests.el
(esh-var-test/path-var/preserve-across-hosts): Skip on MS-Windows.
(esh-var-test/path-var/set, esh-var-test/path-var/set-locally):
Quote the PATH value, for MS-Windows.
* test/lisp/eshell/esh-util-tests.el (esh-util-test/path/get): No
need to add ".": it is already done by 'eshell-get-path'.
* test/lisp/eshell/esh-proc-tests.el
(esh-proc-test/kill-pipeline): Accept empty string as valid
output.
(esh-proc-test/sigpipe-exits-process): Skip on MS-Windows: no
SIGPIPE.
(esh-proc-test/emacs-command): Quote correctly for MS-Windows.
* test/lisp/eshell/em-unix-tests.el
(em-unix-test/compile/interactive): Fix test on MS-Windows.
* test/lisp/eshell/em-script-tests.el (em-script-test/batch-file):
Skip on MS-Windows.
* test/lisp/eshell/eshell-tests-helpers.el
(eshell-command-result--equal): Compare strings (file names)
case-insensitively on MS-Windows.

(cherry picked from commit f869f1ffc2ef0e126e633553e6b4c38bee90f7f8)
lisp/eshell/esh-util.el
test/lisp/eshell/em-script-tests.el
test/lisp/eshell/em-unix-tests.el
test/lisp/eshell/esh-proc-tests.el
test/lisp/eshell/esh-util-tests.el
test/lisp/eshell/esh-var-tests.el
test/lisp/eshell/eshell-tests-helpers.el