Ticket #1367 (closed defect: fixed)
Debug::Client tests fail against perl-5.15.6 (1 of n)
| Reported by: | bowtie | Owned by: | bowtie |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Debug::Client | Version: | 0.93 |
| Keywords: | perl-5.15.6 | Cc: | azawawi |
Description
perl-5.15.6 uses perl5db.pl v1.35
this error/change of output has previously been seen in
t/04-run_to_line.t .......
ok 4 # skip perl5db v1.34 dose not support "c [line|sub]"
this can been seen in the following
look in Debug-Client in trunk
run perl -d 03-return.pl
which can be found in /t/eg
Look below DB<3> c shows the issue
Loading DB routines from perl5db.pl version 1.33 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. main::(03-return.pl:4): $| = 1; DB<1> s main::(03-return.pl:6): my $x = 11; DB<1> b g DB<2> L b 03-return.pl: 22: my (@in) = @_; break if (1) DB<3> c main::g(03-return.pl:22): my (@in) = @_; DB<3> . main::g(03-return.pl:22): my (@in) = @_; DB<3> c Debugged program terminated. Use q to quit or R to restart, use o inhibit_exit to avoid stopping after program termination, h q, h R or h o to get additional info. DB<3>
and
Loading DB routines from perl5db.pl version 1.35 Editor support available. Enter h or 'h h' for help, or 'man perldebug' for more help. main::(03-return.pl:4): $| = 1; DB<1> s main::(03-return.pl:6): my $x = 11; DB<1> b g DB<2> L b 03-return.pl: 22: my (@in) = @_; break if (1) DB<3> c DB<3> . main::g(03-return.pl:22): my (@in) = @_; DB<3> c Debugged program terminated. Use q to quit or R to restart, use o inhibit_exit to avoid stopping after program termination, h q, h R or h o to get additional info. DB<3>
I will fix shortly, hope this helps illuminate the issue, if you see test errors you can just force in most cases, as in the following.
Change History
comment:2 Changed 18 months ago by bowtie
- Summary changed from Debug::Client tests fail against perl-5.15.6 to Debug::Client tests fail against perl-5.15.6 (1 of n)
comment:3 Changed 18 months ago by bowtie
- Status changed from new to closed
- Resolution set to fixed
Debug-Client 0.17_04 test code, now happy with perl5db.pl v1.35 and will install with out error.
As for using @list requests these will give spurious errors.
in other words Debug2 works with perl up to 5.15.5 at present.

Perfect. Thanks for explaining what happened.
This is exactly the problem with wrapping API around parsed text commands. There is a chance it will fail when that output is changed (e.g. cpan has no internal API)
Thanks