VinsWorldcom has asked for the wisdom of the Perl Monks concerning the following question:

It seems Activestate auto-builds PPM files for CPAN modules, which answered my first question - how do I upload PPM files to Activestate. Unfortunately, it seems to be encountering an error with a module: Net::SNMPTrapd.

See the log at:

http://ppm4.activestate.com/MSWin32-x86/5.10/1000/V/VI/VINSWORLD/Net-SNMPTrapd-0.02.d/log-20100126T021425.txt

I have built the module (including the 'nmake test TEST_VERBOSE=1' that seems to be causing the error) successfully on Windows XP, Mac OS (obviously with make, not nmake) and Debian before I uploaded to CPAN. Additionally, CPAN Testers show 14 pass, no fails as of yet.

Any idea what is causing the error: "Dubious, test returned 5 (wstat 1280, 0x500)" - which does not show up/occur when I run the 'make test' - and how to fix it?

  • Comment on Trouble with Activestate PPM 'autobuild'

Replies are listed 'Best First'.
Re: Trouble with Activestate PPM 'autobuild'
by Anonymous Monk on Jan 27, 2010 at 18:47 UTC
    Non-zero exit status: 5

    non-zero exit means an error occured, so your tests need to

    exit 0;

      Having run the 'make test TEST_VERBOSE=1' on several different platforms and not getting the error, also checking the error level once the 'make test' was done (echo %ERRORLEVEL% / echo $?) on those platforms and seeing it '0' in all cases and reading the 'perldoc -f exit' and seeing that "If EXPR is omitted, exits with 0 status.", I thought the 'exit' command I already had in my test covered that.

      I suppose I could modify my 'exit' with 'exit 0'.

      That still doesn't answer what the "Dubious, test returned 5 (wstat 1280, 0x500)" means. I'm guessing the 0x500 is the '5', but what is the 'wstat 1280'? Googling seems to indicate it has something to do with parent/child processes. There is no test that returns 5 in my test program and I figured the line "All 3 subtests passed" in the log was a good thing.