[Bash-completion-devel] Bump match_max for test suite?
Ville Skyttä
ville.skytta at iki.fi
Sat Jan 9 11:21:08 UTC 2010
On Saturday 09 January 2010, Ville Skyttä wrote:
> The following commit has been merged in the master branch:
> commit 66f5c11ab7894125039fc366c80d651f06587c43
> Author: Ville Skyttä <ville.skytta at iki.fi>
> Date: Sat Jan 9 11:44:36 2010 +0200
>
> (testsuite) Add simple rpm completion tests.
[...]
> +set _old_match_max [match_max]
> +match_max 100000
[...]
> +match_max $_old_match_max
Expect's default buffer size is too small - 2000 bytes according to the man
page here - for cases where we have a lot of completions. In addition to rpm,
there are at least pkg_info, portupgrade, portinstall, and probably quite a
few other tests that have this problem.
Opinions, should we fiddle with match_max where needed (like
lib/completions/rpm.exp above), or should we just bump it to a large value
(100000?) for all tests? I'm leaning towards the latter.
More information about the Bash-completion-devel
mailing list