Skip Menu |
 

This queue is for tickets about the Complete-Util CPAN distribution.

Report information
The Basics
Id: 104981
Status: resolved
Priority: 0/
Queue: Complete-Util

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

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



Subject: strawberry perl (MS Windows) 5.22.0 failure
Hi,

I have experienced the following failure
Running make test
"D:\strawberry32\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-compile.t ............ ok
t/combine_answers.t ....... ok
t/complete_array_elem.t ... ok
t/complete_env.t .......... ok
t/complete_file.t ......... ok
t/complete_hash_key.t ..... ok
t/complete_program.t ......
t/complete_program.t ...... 1/? #   Failed test at t/complete_program.t line 27.
#     Structures begin differing at:
#          $got->[0] = Does not exist
#     $expected->[0] = 'prog1.bat'

#   Failed test at t/complete_program.t line 28.
#     Structures begin differing at:
#          $got->[0] = Does not exist
#     $expected->[0] = 'prog3.bat'
# Looks like you failed 2 tests of 5.
t/complete_program.t ...... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/5 subtests
        (less 1 skipped subtest: 2 okay)
t/release-pod-coverage.t .. skipped: these tests are for release candidate testing
t/release-pod-syntax.t .... skipped: these tests are for release candidate testing
t/release-rinci.t ......... skipped: these tests are for release candidate testing

Test Summary Report
-------------------
t/complete_program.t    (Wstat: 512 Tests: 5 Failed: 2)
  Failed tests:  1-2
  Non-zero exit status: 2
Files=10, Tests=39,  3 wallclock secs ( 0.08 usr +  0.02 sys =  0.09 CPU)
Result: FAIL
Download (untitled) / with headers
text/plain 1.7k
I am just guessing here because I don't have that particular system handy, but it's probably because we can't temporarily set $^O. I'm adding a test skip if that happens, in 0.30. Please test, thank you. On Fri Jun 05 06:05:31 2015, KMX wrote: Show quoted text
> Hi, > > I have experienced the following failure > > Running make test > "D:\strawberry32\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-compile.t ............ ok > t/combine_answers.t ....... ok > t/complete_array_elem.t ... ok > t/complete_env.t .......... ok > t/complete_file.t ......... ok > t/complete_hash_key.t ..... ok > t/complete_program.t ...... > t/complete_program.t ...... 1/? # Failed test at > t/complete_program.t line 27. > # Structures begin differing at: > # $got->[0] = Does not exist > # $expected->[0] = 'prog1.bat' > > # Failed test at t/complete_program.t line 28. > # Structures begin differing at: > # $got->[0] = Does not exist > # $expected->[0] = 'prog3.bat' > # Looks like you failed 2 tests of 5. > t/complete_program.t ...... Dubious, test returned 2 (wstat 512, > 0x200) > Failed 2/5 subtests > (less 1 skipped subtest: 2 okay) > t/release-pod-coverage.t .. skipped: these tests are for release > candidate testing > t/release-pod-syntax.t .... skipped: these tests are for release > candidate testing > t/release-rinci.t ......... skipped: these tests are for release > candidate testing > > Test Summary Report > ------------------- > t/complete_program.t (Wstat: 512 Tests: 5 Failed: 2) > Failed tests: 1-2 > Non-zero exit status: 2 > Files=10, Tests=39, 3 wallclock secs ( 0.08 usr + 0.02 sys = 0.09 > CPU) > Result: FAIL
Subject: Re: [rt.cpan.org #104981] strawberry perl (MS Windows) 5.22.0 failure
Date: Sun, 07 Jun 2015 19:20:33 +0200
To: bug-Complete-Util [...] rt.cpan.org
From: kmx <kmx [...] cpan.org>
Complete-Util-0.30 still fails like this: t/complete_program.t ...... # Failed test at t/complete_program.t line 27. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = 'prog1.bat' # Failed test at t/complete_program.t line 28. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = 'prog3.bat' # Looks like you failed 2 tests of 3. t/complete_program.t ...... 1/? # Failed test 'unix/colon-separated PATH' # at t/complete_program.t line 30. # Looks like you failed 1 test of 3. t/complete_program.t ...... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/3 subtests (less 1 skipped subtest: 1 okay) According to my observation the trouble is that on MS Windows a tempdir is something like this: c:\Users\kmx\AppData\Local\Temp\RKOW544V6u But when you try to emulate linux environment you take ':' as a PATH item separator which splits: c \Users\kmx\AppData\Local\Temp\RKOW544V6u -- kmx
Download (untitled) / with headers
text/plain 1.1k
Of course you're right. I've adjusted the tests in 0.31. Thanks, On Sun Jun 07 13:20:47 2015, KMX wrote: Show quoted text
> Complete-Util-0.30 still fails like this: > > t/complete_program.t ...... > # Failed test at t/complete_program.t line 27. > # Structures begin differing at: > # $got->[0] = Does not exist > # $expected->[0] = 'prog1.bat' > > # Failed test at t/complete_program.t line 28. > # Structures begin differing at: > # $got->[0] = Does not exist > # $expected->[0] = 'prog3.bat' > # Looks like you failed 2 tests of 3. > > t/complete_program.t ...... 1/? # Failed test 'unix/colon-separated PATH' > # at t/complete_program.t line 30. > # Looks like you failed 1 test of 3. > t/complete_program.t ...... Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/3 subtests > (less 1 skipped subtest: 1 okay) > > According to my observation the trouble is that on MS Windows a tempdir is > something like this: > c:\Users\kmx\AppData\Local\Temp\RKOW544V6u > > But when you try to emulate linux environment you take ':' as a PATH item > separator which splits: > c > \Users\kmx\AppData\Local\Temp\RKOW544V6u > > -- > kmx
Assuming resolved for now.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.