Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
e16582b6
Commit
e16582b6
authored
Sep 13, 2013
by
Glenn Morris
Browse files
* test/automated/eshell.el (eshell-test/for-loop, eshell-test/for-name-loop):
Ensure environment variables don't confuse us.
parent
97fc2468
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
test/ChangeLog
test/ChangeLog
+2
-0
test/automated/eshell.el
test/automated/eshell.el
+6
-2
No files found.
test/ChangeLog
View file @
e16582b6
...
...
@@ -4,6 +4,8 @@
Use a temp directory for eshell-directory-name.
(eshell-test-command-result): New, again using a temp directory.
Replace eshell-command-result with this throughout.
(eshell-test/for-loop, eshell-test/for-name-loop):
Ensure environment variables don't confuse us.
2013-09-12 Glenn Morris <rgm@gnu.org>
...
...
test/automated/eshell.el
View file @
e16582b6
...
...
@@ -76,11 +76,15 @@
(
ert-deftest
eshell-test/for-loop
()
"Test `eshell-command-result' with an elisp command."
(
should
(
equal
(
eshell-test-command-result
"for foo in 5 { echo $foo }"
)
5
)))
(
let
((
process-environment
(
cons
"foo"
process-environment
)))
(
should
(
equal
(
eshell-test-command-result
"for foo in 5 { echo $foo }"
)
5
))))
(
ert-deftest
eshell-test/for-name-loop
()
;Bug#15231
"Test `eshell-command-result' with an elisp command."
(
should
(
equal
(
eshell-test-command-result
"for name in 3 { echo $name }"
)
3
)))
(
let
((
process-environment
(
cons
"name"
process-environment
)))
(
should
(
equal
(
eshell-test-command-result
"for name in 3 { echo $name }"
)
3
))))
(
ert-deftest
eshell-test/lisp-command-args
()
"Test `eshell-command-result' with elisp and trailing args.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment