Skip Menu |

This queue is for tickets about the Test-LongString CPAN distribution.

Report information
The Basics
Id: 21023
Status: resolved
Priority: 0/
Queue: Test-LongString

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

Bug Information
Severity: Important
Broken in: 0.09
Fixed in: (no value)



Subject: tests are failing on Perl 5.8.7 under Cygwin
Something is wonky. The strings are obviously the same, but an extra "not ok 2" is being tacked on somehow: jrockway@WS-DALI ~/Application Data/.cpanplus/5.8.7/build/Test-LongString-0.09 $ make test /usr/bin/perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01teststring....ok 1/11 t/01teststring....NOK 3# Failed test 'two small strings different' # in t/01teststring.t at line 23. # STDOUT is: # not ok 1 - foo is foo # # not: # not ok 1 - foo is foo # not ok 2 # # as expected t/01teststring....NOK 4# Failed test 'got undef, expected small string' # in t/01teststring.t at line 30. # STDOUT is: # not ok 1 - foo is foo # # not: # not ok 1 - foo is foo # not ok 2 # # as expected t/01teststring....NOK 5# Failed test 'expected undef, got small string' # in t/01teststring.t at line 37. # STDOUT is: # not ok 1 - foo is foo # # not: # not ok 1 - foo is foo # not ok 2 # # as expected # Failed test 'display of long strings and of control chars't/01teststring....NOK 6 # in t/01teststring.t at line 51. # STDOUT is: # not ok 1 - long binary strings # # not: # not ok 1 - long binary strings # not ok 2 # # as expected # Failed test 'Escape high-ascii chars't/01teststring....NOK 7 # in t/01teststring.t at line 65. # STDOUT is: # not ok 1 - spelling # # not: # not ok 1 - spelling # not ok 2 # # as expected t/01teststring....NOK 8# Failed test 'Count correctly prefix with multiline strings' # in t/01teststring.t at line 75. # STDOUT is: # not ok 1 - foo\nfoo is foo\nfoo # # not: # not ok 1 - foo\nfoo is foo\nfoo # not ok 2 # # as expected t/01teststring....NOK 9# Failed test 'Display offset in diagnostics' # in t/01teststring.t at line 101. # STDOUT is: # not ok 1 - this isn't Ulysses # # not: # not ok 1 - this isn't Ulysses # not ok 2 # # as expected # Failed test 'is_string_nows tests correctly't/01teststring....NOK 11 # in t/01teststring.t at line 124. # STDOUT is: # not ok 1 - non-ws differs # # not: # not ok 1 - non-ws differs # not ok 2 # # as expected t/01teststring....FAILED tests 3-9, 11 Failed 8/11 tests, 27.27% okay t/02import........ t/02import........NOK 1# Failed test '5 chars in output' # in t/02import.t at line 18. # STDOUT is: # not ok 1 - foobar is foobar # # not: # not ok 1 - foobar is foobar # not ok 2 # # as expected t/02import........FAILED test 1 Failed 1/1 tests, 0.00% okay t/03like..........ok 1/5 t/03like..........NOK 2# Failed test 'a small string doesn't match' # in t/03like.t at line 20. # STDOUT is: # not ok 1 - foo matches foo # # not: # not ok 1 - foo matches foo # not ok 2 # # as expected t/03like..........NOK 3# Failed test 'got undef' # in t/03like.t at line 28. # STDOUT is: # not ok 1 - foo matches foo # # not: # not ok 1 - foo matches foo # not ok 2 # # as expected t/03like..........NOK 4# Failed test 'a huge string doesn't match' # in t/03like.t at line 36. # STDOUT is: # not ok 1 - long string matches a* # # not: # not ok 1 - long string matches a* # not ok 2 # # as expected t/03like..........NOK 5# Failed test 'a small string matches while it shouldn't' # in t/03like.t at line 44. # STDOUT is: # not ok 1 - foo doesn't match bar # # not: # not ok 1 - foo doesn't match bar # not ok 2 # # as expected t/03like..........FAILED tests 2-5 Failed 4/5 tests, 20.00% okay t/04contains......ok 1/4 t/04contains......NOK 2# Failed test 'Substring doesn't match' # in t/04contains.t at line 21. # STDOUT is: # not ok 1 - Any nachos? # # not: # not ok 1 - Any nachos? # not ok 2 # # as expected t/04contains......NOK 3# Failed test 'Source string undef fails' # in t/04contains.t at line 28. # STDOUT is: # not ok 1 - Look inside undef # # not: # not ok 1 - Look inside undef # not ok 2 # # as expected t/04contains......NOK 4# Failed test 'Substring undef fails' # in t/04contains.t at line 35. # STDOUT is: # not ok 1 - Look for undef # # not: # not ok 1 - Look for undef # not ok 2 # # as expected t/04contains......FAILED tests 2-4 Failed 3/4 tests, 25.00% okay t/05lacks.........ok 1/4 t/05lacks.........NOK 2# Failed test 'Not lacking' # in t/05lacks.t at line 22. # STDOUT is: # not ok 1 - Any peanut butter in my chocolate? # # not: # not ok 1 - Any peanut butter in my chocolate? # not ok 2 # # as expected t/05lacks.........NOK 3# Failed test 'Source string undef fails' # in t/05lacks.t at line 29. # STDOUT is: # not ok 1 - Look inside undef # # not: # not ok 1 - Look inside undef # not ok 2 # # as expected t/05lacks.........NOK 4# Failed test 'Substring undef fails' # in t/05lacks.t at line 36. # STDOUT is: # not ok 1 - Look for undef # # not: # not ok 1 - Look for undef # not ok 2 # # as expected t/05lacks.........FAILED tests 2-4 Failed 3/4 tests, 25.00% okay t/pod-coverage....skipped all skipped: Test::Pod::Coverage 1.04 required for testing POD coverage t/pod.............ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/01teststring.t 11 8 72.73% 3-9 11 t/02import.t 1 1 100.00% 1 t/03like.t 5 4 80.00% 2-5 t/04contains.t 4 3 75.00% 2-4 t/05lacks.t 4 3 75.00% 2-4 1 test skipped. Failed 5/7 test scripts, 28.57% okay. 19/26 subtests failed, 26.92% okay. make: *** [test_dynamic] Error 14 -- Summary of my perl: Summary of my perl5 (revision 5 version 8 subversion 7) configuration: Platform: osname=cygwin, osvers=1.5.18(0.13242), archname=cygwin-thread-multi-64int uname='cygwin_nt-5.1 inspiron 1.5.18(0.13242) 2005-07-02 20:30 i686 unknown unknown cygwin ' config_args='-de -Dmksymlinks -Duse64bitint -Dusethreads -Uusemymalloc -Doptimize=-O3 -Dman3ext= 3pm -Dusesitecustomize' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=define use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -I/usr/local/include', optimize='-O3', cppflags='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -I/usr/local/include' ccversion='', gccversion='3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='ld2', ldflags =' -s -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lgdbm -ldb -lcrypt -lgdbm_compat perllibs=-lcrypt -lgdbm_compat libc=/usr/lib/libc.a, so=dll, useshrplib=true, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' -s' cccdlflags=' ', lddlflags=' -s -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_64_BIT_INT USE_LARGE_FILES USE_SITECUSTOMIZE PERL_IMPLICIT_CONTEXT Locally applied patches: SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962 Built under cygwin Compiled at Dec 30 2005 02:44:25 %ENV: CYGWIN="" @INC: /usr/lib/perl5/5.8/cygwin /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8 . And finally, $ perl -MTest::Harness -e 'print Test::Harness->VERSION' 2.48 I'll look into this and attache a patch if I figure it out. -- Jonathan Rockway <jrockway@cpan.org>
Fixed. Test::Simple needed a version bump. $ make test /usr/bin/perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01teststring....ok t/02import........ok t/03like..........ok t/04contains......ok t/05lacks.........ok t/pod-coverage....ok t/pod.............ok All tests successful. Files=7, Tests=27, 2 wallclock secs ( 1.22 cusr + 0.47 csys = 1.70 CPU) -- Jonathan Rockway <jrockway@cpan.org>