summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-11-26 23:26:44 +0200
committerVille Skyttä <ville.skytta@iki.fi>2011-11-26 23:32:24 +0200
commit3a7f1d3de38aac9613a3647c3d1db367f34d2084 (patch)
tree179e7e2bd1ab8048c4e53d6e99ec799025a82e41
parentf486ae26a0adfa6bcdc8ac75280e0531c88f13d9 (diff)
downloadbash-completion-3a7f1d3de38aac9613a3647c3d1db367f34d2084.tar.gz
testsuite/assert_complete_dir: Add note about OLDPWD filtering.
-rw-r--r--test/lib/library.exp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/lib/library.exp b/test/lib/library.exp
index 816c038f..b2233258 100644
--- a/test/lib/library.exp
+++ b/test/lib/library.exp
@@ -357,8 +357,9 @@ proc assert_complete_any {cmd {test ""} {prompt /@}} {
}
-# Make sure the expected files are returned by TAB-completing the
-# specified command in the specified subdirectory.
+# Make sure the expected files are returned by TAB-completing the specified
+# command in the specified subdirectory. Be prepared to filter out OLDPWD
+# changes when calling assert_env_unmodified() after using this procedure.
# @param list $expected
# @param string $cmd Command given to generate items
# @param string $dir Subdirectory to attempt completion in. The directory must be relative from the $TESTDIR and without a trailing slash. E.g. `fixtures/evince'