From 3a7f1d3de38aac9613a3647c3d1db367f34d2084 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 26 Nov 2011 23:26:44 +0200 Subject: testsuite/assert_complete_dir: Add note about OLDPWD filtering. --- test/lib/library.exp | 5 +++-- 1 file 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' -- cgit v1.2.1