Hi,
There's an issue I've struck a few times with perl extensions that I've authored, where I've put a debug
printf() statement inside an XSub in the XS file.
It's always a totally banal
printf() statement - eg
printf("In the 'if' block\n"); or
printf("In the else block\n"):.
It's pretty simple stuff, serves its purpose well, and is generally useful.
However, if:
1) I then run
make test on this perl extension;
&&
2) in the running of a particular test script, this
printf() statement gets called tens of thousands of times
then
make test will report that the test script has failed, though all tests have passed.
I guess it's something to do with the way that the Test::Harness suppresses the printf() statements.
(If I change the
printf("...\n") to
warn("...\n") then, IIRC, there's no such problem.)
I'm not sure that I've ever struck this behaviour on a non-Windows system.
Is this a bug that should be reported ? ... or merely a behaviour that no street savvy author would ever admit having encountered ?
Cheers,
Rob
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.