From 268656d52bbf971f59883b729b465362ce8f410a Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Fri, 1 Jan 2016 16:35:00 +0000 Subject: [PATCH] tests: Add a comment. No functional change. --- tests/test-highlighting.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test-highlighting.zsh b/tests/test-highlighting.zsh index 0abf34b..d80cc46 100755 --- a/tests/test-highlighting.zsh +++ b/tests/test-highlighting.zsh @@ -121,6 +121,8 @@ run_test() { typeset -r __tests_tempdir # don't allow tests to override the variable that we will 'rm -rf' later on { + # Use a subshell to isolate tests from each other. + # (So tests can alter global shell state using 'cd', 'hash', etc) (run_test_internal "$__tests_tempdir" "$@") } always { rm -rf -- "$__tests_tempdir"