Skip Menu |

This queue is for tickets about the Data-Peek CPAN distribution.

Report information
The Basics
Id: 99509
Status: resolved
Priority: 0/
Queue: Data-Peek

People
Owner: Nobody in particular
Requestors: MITHALDU [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.33
Fixed in: 0.42



Subject: test failure on windows: t/11_DDumper.t
I encountered a test failure installing this on windows, as follows: d:\tmp>cpan Data::Peek CPAN: Term::ANSIColor loaded ok (v4.02) CPAN: Win32::Console::ANSI loaded ok (v1.06) CPAN: Storable loaded ok (v2.45) Reading 'C:\Perl\cpan\Metadata' Database was generated on Wed, 15 Oct 2014 09:29:02 GMT Running install for module 'Data::Peek' CPAN: LWP::UserAgent loaded ok (v6.06) Fetching with LWP: http://ppm.activestate.com/CPAN/authors/id/H/HM/HMBRAND/Data-Peek-0.41.tgz CPAN: YAML::XS loaded ok (v0.41) CPAN: Digest::SHA loaded ok (v5.91) Fetching with LWP: http://ppm.activestate.com/CPAN/authors/id/H/HM/HMBRAND/CHECKSUMS CPAN: Compress::Zlib loaded ok (v2.064) Checksum for C:\Perl\cpan\sources\authors\id\H\HM\HMBRAND\Data-Peek-0.41.tgz ok CPAN: Archive::Tar loaded ok (v1.96) CPAN: File::Temp loaded ok (v0.2304) CPAN: Parse::CPAN::Meta loaded ok (v1.4414) CPAN: CPAN::Meta loaded ok (v2.132830) CPAN: Module::CoreList loaded ok (v3.03) Configuring H/HM/HMBRAND/Data-Peek-0.41.tgz with Makefile.PL CPAN: CPAN::Reporter loaded ok (v1.2011) Do you want to install module DP as a shortcut for Data::Peek ? [y] Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for Data::Peek Writing MYMETA.yml and MYMETA.json (C:\Perl\bin\perl.exe Makefile.PL INSTALLDIRS=site exited with 0) CPAN::Reporter: Makefile.PL result is 'pass', No errors. HMBRAND/Data-Peek-0.41.tgz C:\Perl\bin\perl.exe Makefile.PL INSTALLDIRS=site -- OK Running make for H/HM/HMBRAND/Data-Peek-0.41.tgz cp Peek.pm blib\lib/Data/Peek.pm cp DP.pm blib\lib/DP.pm Running Mkbootstrap for Data::Peek () C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 Peek.bs C:\Perl\bin\perl.exe C:\Perl\site\lib\ExtUtils\xsubpp -typemap C:\Perl\lib\ExtUtils\typemap -typemap typemap Peek.xs > Peek.xsc && C:\Perl\bin\perl.exe -MExtUtils::Command -e mv -- Peek.xsc Peek.c C:\Perl\site\bin\gcc.exe -c -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -D_USE_32BIT_TIME_T -DHASATTRIBUTE -fno-strict-aliasing - mms-bitfields -O2 -DVERSION=\"0.41\" -DXS_VERSION=\"0.41\" "-IC:\Perl\lib\CORE" Peek.c C:\Perl\bin\perl.exe -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"Data::Peek\", 'DLBASE' => 'Peek', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);" C:\Perl\site\bin\dlltool.exe --def Peek.def --output-exp dll.exp C:\Perl\site\bin\g++.exe -o blib\arch\auto\Data\Peek\Peek.dll -Wl,--base-file -Wl,dll.base -mdll -L"C:\Perl\lib\CORE" Peek.o C:\Perl\lib\CORE\perl516.lib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lo le32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 -lmsvcrt dll.exp C:\Perl\site\bin\dlltool.exe --def Peek.def --base-file dll.base --output-exp dll.exp C:\Perl\site\bin\g++.exe -o blib\arch\auto\Data\Peek\Peek.dll -mdll -L"C:\Perl\lib\CORE" Peek.o C:\Perl\lib\CORE\perl516.lib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -l uuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 -lmsvcrt dll.exp C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod -- 755 blib\arch\auto\Data\Peek\Peek.dll (C:\Perl\site\bin\dmake.exe exited with 0) CPAN::Reporter: C:\Perl\site\bin\dmake.exe result is 'pass', No errors. HMBRAND/Data-Peek-0.41.tgz C:\Perl\site\bin\dmake.exe -- OK Running make test C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/00_pod.t ........ ok t/01_pod.t ........ ok t/10_DDumper.t .... ok Unrecognized line ending ' '; expecting one of: win dos unix mac # Failed test 'DDumper (1)' # at t/11_DDumper.t line 37. Use of uninitialized value $dump in substitution (s///) at t/11_DDumper.t line 38, <DATA> line 3. Use of uninitialized value $dump in substitution (s///) at t/11_DDumper.t line 39, <DATA> line 3. # Failed test '.. content' # at t/11_DDumper.t line 46. # got: undef # expected: '1' # Looks like you failed 2 tests of 33. t/11_DDumper.t .... Dubious, test returned 2 (wstat 512, 0x200) Failed 2/33 subtests t/20_DPeek.t ...... ok t/21_DDisplay.t ... ok t/22_DHexDump.t ... ok t/30_DDump-s.t .... ok t/31_DDump-s.t .... ok t/40_DDump-h.t .... ok t/41_DDump-h.t .... ok t/50_DDual.t ...... ok t/51_triplevar.t .. ok t/52_DGrow.t ...... ok Test Summary Report ------------------- t/11_DDumper.t (Wstat: 512 Tests: 33 Failed: 2) Failed tests: 5-6 Non-zero exit status: 2 t/50_DDual.t (Wstat: 0 Tests: 70 Failed: 0) TODO passed: 8-9, 31-32, 40-41, 49-50, 58-69 Files=14, Tests=287, 7 wallclock secs ( 0.05 usr + 0.06 sys = 0.11 CPU) Result: FAIL Failed 1/14 test programs. 2/287 subtests failed. dmake.exe: Error code 255, while making 'test_dynamic' (C:\Perl\site\bin\dmake.exe test exited with 65280) CPAN::Reporter: Test result is 'fail', One or more tests failed. CPAN::Reporter: preparing a CPAN Testers report for Data-Peek-0.41 CPAN::Reporter: sending test report with 'fail' via Metabase HMBRAND/Data-Peek-0.41.tgz C:\Perl\site\bin\dmake.exe test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports HMBRAND/Data-Peek-0.41.tgz d:\tmp>
The bug is not in DP, but there is still a bug in that DP just throws its arms up when Perl::Tidy fails.
Thinking about it, there is additionally also the possibility of incompatibility with my ~/.perltidyrc: --maximum-line-length=120 --backup-and-modify-in-place --paren-tightness=0 --output-line-ending=unix --indent-columns=4