develooper Front page | perl.perl5.porters | Postings from January 2014

[perl #118817] [PATCH] lib/perldb5.t fails with TERM=vt100

Thread Previous
Tony Cook via RT
January 13, 2014 03:51
[perl #118817] [PATCH] lib/perldb5.t fails with TERM=vt100
Message ID:
On Mon Dec 09 03:03:03 2013, ppisar wrote:
> I have the same problem in Fedora Rawhide.

I've reproduced this on rawhide.

This appears to be a bug in the test code or in the debugger.

The tests run the debugger with the following options:

NonStop=0 TTY=db.out LineInfo=db.out

and ends up with two handles both pointing at db.out, one for
$TTY and another for $LINEINFO.

Neither handle is opened with O_APPEND, so the file positions are
updated as each handle is written to.

In our case, the debugger intro is written to $TTY, then the
program runs, and that is overwritten by the trace text written

Once the program is complete, the "Debugged program
terminated..." text is written at the current position of $TTY,
overwriting part of the debugger trace text.

As to why this is limited to TERM=vt100 - the vt100 terminal
codes on Redhat* seem to be just that little bit longer than they
are on Debian - or longer than the xterm codes on Redhat, so the
text this particular test matches against is overwritten.

Removing the setting of LineInfo allows this test, but several
other tests fail, I'll check each failing test and produce a


* for various forms of Redhat linux

via perlbug:  queue: perl5 status: open

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About