[Bash-completion-devel] Test suite failures/questions
Freddy Vulto
fvulto at gmail.com
Sun Nov 15 20:50:03 UTC 2009
Freddy Vulto <f.vulto <at> wanadoo.nl> writes:
> On 10:55, Ville Skyttä wrote:
> > ...and indeed, if I set TERM=dummy or TERM=linux or TERM=vt100 in the
> > environment, the error goes away. Originally it was TERM=xterm, this is
> > in a KDE konsole window. So maybe a readline issue? Do you think the
> > attached patch would be ok?
>
> I tested with your patch on Debian and couldn't see any regression. So
> +1 to include the patch.
Unfortunately the `TERM=dummy' in test/config/bashrc causes tests to fail when
running from cron because ^H's (backspaces) are sent to stdout. Setting
TERM=linux seems to work all right though so if this is working for you as well,
I'm changing `TERM=dummy' to `TERM=linux' in config/bashrc.
Steps to reproduce output of ^H with TERM=dummy:
$ batch
warning: commands will be executed using /bin/sh
at> ./runUnit _known_hosts_real.exp --debug < /dev/tty40
at> ^D
NOTE: You need to connect a terminal (< /dev/tty..) to the test suite
when running from cron. See also doc/testing.txt, "Running tests via
cron".
Now in `dbg.log' I can see:
...
expect: does "" (spawn_id exp8) match exact string "unset COMPREPLY;
_known_hosts_real -aF fixtures/_known_hosts_real/config ''; echo_array
COMPREPLY\r\n"? no
unset COMPREPLY; _known_hosts_real -aF
fixtures/_known_hosts_real/config ''
<osts_real -aF
fixtures/_known_hosts_real/config '';
echo_array COMPREPLY
expect: does "unset COMPREPLY; _known_hosts_real -aF
fixtures/_known_hosts_real/config ''\r<osts_real -aF
fixtures/_known_hosts_real/config '';
\u0008\u0008\u0008\u0008\u0008\u0008\u0008\u0008\u0008\u0008\u0008
\u0008\u0008\u0008\u0008\u0008\u0008\u0008\u0008\u0008\u0008\u0008
\u0008\u0008\u0008
echo_array COMPREPLY\r\n" (spawn_id exp8) match exact string "unset
COMPREPLY; _known_hosts_real -aF fixtures/_known_hosts_real/config '';
echo_array COMPREPLY\r\n"? no
...
For what it's worth, there seems to be a patch dated Sep 23, 2009 for the
original bug in libreadline5:
http://old.nabble.com/-PATCH-:-fix-libreadline5-linked-applications-sending-meta_on-or-meta_off-to-stdout-td25557585.html
Regards,
Freddy Vulto
http://fvue.nl
More information about the Bash-completion-devel
mailing list