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

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

Thread Previous
From:
Tony Cook via RT
Date:
January 13, 2014 03:51
Subject:
[perl #118817] [PATCH] lib/perldb5.t fails with TERM=vt100
Message ID:
rt-4.0.18-5825-1389585106-857.118817-15-0@perl.org
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
to $LINEINFO.

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
patch.

Tony

* for various forms of Redhat linux

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=118817

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About