diff options
| author | Glenn Morris | 2013-09-13 13:13:52 -0400 |
|---|---|---|
| committer | Glenn Morris | 2013-09-13 13:13:52 -0400 |
| commit | e16582b6bc23a1a514d27cfc38c7ddcd91622adb (patch) | |
| tree | 6d7a953e15d0f813300fa00e0716d9b4740d2053 /test | |
| parent | 97fc2468bd2cbce07205d1fc96f17220187a0f84 (diff) | |
| download | emacs-e16582b6bc23a1a514d27cfc38c7ddcd91622adb.tar.gz emacs-e16582b6bc23a1a514d27cfc38c7ddcd91622adb.zip | |
* test/automated/eshell.el (eshell-test/for-loop, eshell-test/for-name-loop):
Ensure environment variables don't confuse us.
Diffstat (limited to 'test')
| -rw-r--r-- | test/ChangeLog | 2 | ||||
| -rw-r--r-- | test/automated/eshell.el | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 4330b77e21e..21b22425fb6 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -4,6 +4,8 @@ | |||
| 4 | Use a temp directory for eshell-directory-name. | 4 | Use a temp directory for eshell-directory-name. |
| 5 | (eshell-test-command-result): New, again using a temp directory. | 5 | (eshell-test-command-result): New, again using a temp directory. |
| 6 | Replace eshell-command-result with this throughout. | 6 | Replace eshell-command-result with this throughout. |
| 7 | (eshell-test/for-loop, eshell-test/for-name-loop): | ||
| 8 | Ensure environment variables don't confuse us. | ||
| 7 | 9 | ||
| 8 | 2013-09-12 Glenn Morris <rgm@gnu.org> | 10 | 2013-09-12 Glenn Morris <rgm@gnu.org> |
| 9 | 11 | ||
diff --git a/test/automated/eshell.el b/test/automated/eshell.el index f9061ceb57c..b9eb31660f1 100644 --- a/test/automated/eshell.el +++ b/test/automated/eshell.el | |||
| @@ -76,11 +76,15 @@ | |||
| 76 | 76 | ||
| 77 | (ert-deftest eshell-test/for-loop () | 77 | (ert-deftest eshell-test/for-loop () |
| 78 | "Test `eshell-command-result' with an elisp command." | 78 | "Test `eshell-command-result' with an elisp command." |
| 79 | (should (equal (eshell-test-command-result "for foo in 5 { echo $foo }") 5))) | 79 | (let ((process-environment (cons "foo" process-environment))) |
| 80 | (should (equal (eshell-test-command-result | ||
| 81 | "for foo in 5 { echo $foo }") 5)))) | ||
| 80 | 82 | ||
| 81 | (ert-deftest eshell-test/for-name-loop () ;Bug#15231 | 83 | (ert-deftest eshell-test/for-name-loop () ;Bug#15231 |
| 82 | "Test `eshell-command-result' with an elisp command." | 84 | "Test `eshell-command-result' with an elisp command." |
| 83 | (should (equal (eshell-test-command-result "for name in 3 { echo $name }") 3))) | 85 | (let ((process-environment (cons "name" process-environment))) |
| 86 | (should (equal (eshell-test-command-result | ||
| 87 | "for name in 3 { echo $name }") 3)))) | ||
| 84 | 88 | ||
| 85 | (ert-deftest eshell-test/lisp-command-args () | 89 | (ert-deftest eshell-test/lisp-command-args () |
| 86 | "Test `eshell-command-result' with elisp and trailing args. | 90 | "Test `eshell-command-result' with elisp and trailing args. |