|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Unable to get terminal sizeby Ovid (Cardinal) |
| on Sep 18, 2007 at 18:25 UTC ( #639718=perlquestion: print w/ replies, xml ) | Need Help?? |
|
Ovid has asked for the
wisdom of the Perl Monks concerning the following question:
One of feature which has been requested a few times for the prove utility which ships with Test::Harness is the ability to run a test directly in the debugger. It would be nice to do this: prove -d t/some_test.tAdmittedly, you can do some hacking in your code to include blib/lib and not use prove directly, but anyone who has had to do this often enough knows that this can sometimes mask bugs caused by the interaction of the test framework and the code being tested. Since we're working on the new version of Test::Harness, I decided to add this feature. Unfortunately, this failed because the code is unable to fetch the terminal size. I've managed to reduce the problem down to a one-liner: perl -e '`perl -d -le "print 1"`'This spits out:
As it turns out, there are other problems with adding the -d switch to prove (insecure $ENV{PATH} when using taint checking), but this appears to be the biggest obstacle. In order to meet our design goals, we'd like to solve this with the following constraints:
If those constraints cannot be met, we'll still consider making this an optional feature if this can be solved, but meeting the constraints would be wonderful. Help! Cheers, New address of my CGI Course.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||