I started trying to install with CPAN but the tests were failing which
lead me to running the tests manually.
I pulled down trunk using SVN but I see the same problems.
I tried "nmake install" to bypass the tests which works OK.
I am able to run perl -d:NYTProf and generate a nytprof.out file.
C:\>perl -W -d:NYTProf test_split.pl
Unable to determine line number in test_split.pl.
Unable to determine line number in test_split.pl.
$VAR1 = [
'A',
'B',
'C',
'D'
];
C:\>nytprofhtml
Generating report...
Reading nytprof.out
C:\>
But using "nytprofhtml" or "nytprofcsv" crashes perl.exe.
"nmake" builds everything successfully with Visual Studio .NET 2003.
"nmake install" works OK.
"nmake test" fails on "20.runtests", "22.readstream", and "50.errno".
Test results:
C:\Devel-NYTProf\perl-devel-nytprof-read-only>nmake test
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Perl\bin\perl.exe -MExtUtils::Command -e cp blib\arch\auto
\Devel\NYTProf\NYTProf.dll blib\lib/Devel/auto/Devel\NYTProf/NYTProf.
dll
C:\Perl\bin\perl.exe -MExtUtils::Command -e cp bin/nytprofcsv
blib\script\nytprofcsv
pl2bat.bat blib\script\nytprofcsv
C:\Perl\bin\perl.exe -MExtUtils::Command -e cp bin/nytprofhtml
blib\script\nytprofhtml
pl2bat.bat blib\script\nytprofhtml
C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
t/00.load............# Testing Devel::NYTProf 2.07 on perl 5.008008
MSWin32-x86-multi-thread
t/00.load............ok
t/20.runtests........# Running tests with options: { use_db_sub 0
leave 1 start init }
t/20.runtests........dubious
Test returned status 5 (wstat 1280, 0x500)
DIED. FAILED tests 3-477
Failed 475/477 tests, 0.42% okay
t/22.readstream......dubious
Test returned status 5 (wstat 1280, 0x500)
DIED. FAILED tests 1-8
Failed 8/8 tests, 0.00% okay
t/30.util............ok
t/50.errno...........ok 1/5
# Failed test (t/50.errno.t at line 23)
t/50.errno...........NOK 3/5# got: '2'
# expected: '9999'
# Looks like you failed 1 test of 5.
t/50.errno...........dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 3
Failed 1/5 tests, 80.00% okay
t/80.version.........ok
t/90.pod.............skipped
all skipped: Test::Pod 1.00 required for testing POD
t/91.pod_coverage....skipped
all skipped: Test::Pod::Coverage 1.04 required for testing POD
coverage
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/20.runtests.t 5 1280 477 950 3-477
t/22.readstream.t 5 1280 8 16 1-8
t/50.errno.t 1 256 5 1 3
2 tests skipped.
Failed 3/8 test scripts. 484/521 subtests failed.
Files=8, Tests=521, 7 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00
CPU)
Failed 3/8 test programs. 484/521 subtests failed.
NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0xff'
Stop.
On Jan 30, 7:42 am, Tim Bunce <[email protected]> wrote:
> On Thu, Jan 29, 2009 at 02:27:38PM -0800, Bob wrote:
>
> > Devel::NYTProf 2.07_94
>
> > C:\Devel-NYTProf-2.07\t>perl 50.errno.t
>
> Had you run 'make install' before you ran 'perl 50.errno.t' ?
>
>
>
> > 1..4
> > ok 1 - $! should not be altered by NYTProf
> > ok 2 - nytprof.out should be non-empty
> > not ok 3 - $! should not be altered by assigning fids to previously
> > unprofiled modules
> > # Failed test (50.errno.t at line 24)
> > # got: '2'
> > # expected: '9999'
> > ok 4 - $! should not be altered by NYTProf i/o
> > # Looks like you failed 1 test of 4.
>
> > If I move the 2 "use" line, it fixes the issue. Move "use" lines
> > before the BEGIN block.
>
> > use Devel::NYTProf;
> > use Devel::NYTProf::Test qw(example_xsub example_sub);
>
> That change may just be masking the problem rather than fixing it.
>
> I've made a couple of changes. Could you retest using trunk?
>
> Tim.
--~--~---------~--~----~------------~-------~--~----~
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.
Group hosted at: http://groups.google.com/group/develnytprof-dev
Project hosted at: http://perl-devel-nytprof.googlecode.com
CPAN distribution: http://search.cpan.org/dist/Devel-NYTProf
To post, email: [email protected]
To unsubscribe, email: [email protected]
-~----------~----~----~----~------~----~------~--~---