Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 57682
Status: resolved
Priority: 0/
Queue: Test-File

People
Owner: BAREFOOT [...] cpan.org
Requestors: MTHURN [...] cpan.org
Cc: CHORNY [...] cpan.org
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.29
Fixed in: 1.32



Subject: tests fail on Windows
This is ActivePerl build 1004 (5.10.0) on Windows XP Home SP3 C:\Perl\bin\perl.exe "-MTest::Manifest" "-e" "run_t_manifest(0, 'blib\lib', ' blib\arch', )" t\load.t ...................... ok t\pod.t ....................... ok t\pod_coverage.t .............. ok t\normalize.t ................. ok t\dm_skeleton.t ............... 1/19 # Failed test 'Is multi user' # at t\dm_skeleton.t line 39. # Failed test 'Is multi user' # at t\dm_skeleton.t line 49. # Failed test at t\dm_skeleton.t line 57. # STDOUT is: # ok 1 # skip only works on a multi-user OS! # # not: # not ok 1 # # as expected # STDERR is: # # not: # # File [not_there] does not exist! # # Failed test at t\dm_skeleton.t line 56. # # as expected # Failed test 'Is multi user' # at t\dm_skeleton.t line 64. # Failed test at t\dm_skeleton.t line 72. # STDOUT is: # ok 1 # skip only works on a multi-user OS! # # not: # not ok 1 # # as expected # STDERR is: # # not: # # File name not specified! # # Failed test at t\dm_skeleton.t line 71. # # as expected t\dm_skeleton.t ............... Failed 5/19 subtests (less 3 skipped subtests: 11 okay) t\win32.t ..................... ok t\obviously_non_multi_user.t .. ok t\test_files.t ................ ok t\links.t ..................... 1/37 # File [readable] does not exist # Failed test 'readable exists' # at t\links.t line 63. # Failed test at t\links.t line 89. # STDOUT is: # ok 1 # skip file_is_symlink_ok doesn't work on systems without symlinks! # # not: # ok 1 # skip file_is_symlink_ok doesn't work on systems without symlinks # # as expected # Failed test at t\links.t line 93. # STDOUT is: # ok 1 # skip file_is_symlink_ok doesn't work on systems without symlinks! # # not: # ok 1 - This is my test name # # as expected # Failed test at t\links.t line 97. # STDOUT is: # ok 1 # skip symlink_target_dangles_ok doesn't work on systems without symlinks! # # not: # ok 1 - This is my test name # # as expected # Failed test at t\links.t line 101. # STDOUT is: # ok 1 # skip symlink_target_exists_ok doesn't work on systems without symlinks! # # not: # ok 1 - This is my test name # # as expected # Failed test at t\links.t line 106. # STDOUT is: # ok 1 # skip symlink_target_exists_ok doesn't work on systems without symlinks! # ok 2 # skip symlink_target_is doesn't work on systems without symlinks! # # not: # ok 1 # skip file_is_symlink_ok doesn't work on systems without symlinks # ok 2 - This is my test name # # as expected # Failed test at t\links.t line 122. # STDOUT is: # ok 1 # skip file_is_symlink_ok doesn't work on systems without symlinks! # # not: # not ok 1 - This is my test name # # as expected # STDERR is: # # not: # # File [readable] is not a symlink! # # Failed test 'This is my test name' # # at t\links.t line 121. # # as expected # Failed test at t\links.t line 131. # STDOUT is: # ok 1 # skip file_is_symlink_ok doesn't work on systems without symlinks! # # not: # not ok 1 - This is my test name # # as expected # STDERR is: # # not: # # File [not_there] is not a symlink! # # Failed test 'This is my test name' # # at t\links.t line 130. # # as expected # Failed test at t\links.t line 140. # STDOUT is: # ok 1 # skip symlink_target_dangles_ok doesn't work on systems without symlinks! # # not: # not ok 1 - This is my test name # # as expected # STDERR is: # # not: # # File [not_there] is not a symlink! # # Failed test 'This is my test name' # # at t\links.t line 139. # # as expected # Failed test at t\links.t line 149. # STDOUT is: # ok 1 # skip symlink_target_is doesn't work on systems without symlinks! # # not: # not ok 1 - This is my test name # # as expected # STDERR is: # # not: # # File [readable] is not a symlink! # # Failed test 'This is my test name' # # at t\links.t line 148. # # as expected # Failed test at t\links.t line 158. # STDOUT is: # ok 1 # skip symlink_target_exists_ok doesn't work on systems without symlinks! # # not: # not ok 1 - readable is a symlink # # as expected # STDERR is: # # not: # # File [readable] is not a symlink! # # Failed test 'readable is a symlink' # # at t\links.t line 157. # # as expected # Failed test at t\links.t line 170. # STDOUT is: # ok 1 # skip symlink_target_exists_ok doesn't work on systems without symlinks! # # not: # not ok 1 # skip file_is_symlink_ok doesn't work on systems without symlinks # # as expected # STDERR is: # # not: # # Symlink [readable_sym] points to non-existent target [not_there]! # # Failed test 'readable_sym is a symlink' # # at t\links.t line 169. # # as expected # Failed test at t\links.t line 180. # STDOUT is: # ok 1 # skip symlink_target_is doesn't work on systems without symlinks! # # not: # not ok 1 - symlink readable_sym points to not_there # # as expected # STDERR is: # # not: # # Failed test 'symlink readable_sym points to not_there' # # at t\links.t line 179. # # got: readable # # expected: not_there # # as expected # Failed test at t\links.t line 194. # STDOUT is: # ok 1 # skip symlink_target_exists_ok doesn't work on systems without symlinks! # # not: # not ok 1 # skip file_is_symlink_ok doesn't work on systems without symlinks # # as expected # STDERR is: # # not: # # Symlink [readable_sym] points to # # got: readable # # expected: writeable # # Failed test 'readable_sym is a symlink' # # at t\links.t line 193. # # as expected # Failed test at t\links.t line 205. # STDOUT is: # ok 1 # skip symlink_target_dangles_ok doesn't work on systems without symlinks! # # not: # not ok 1 - This is my test name # # as expected # STDERR is: # # not: # # Symlink [readable_sym] points to existing file [readable] but shouldn't! # # Failed test 'This is my test name' # # at t\links.t line 204. # # as expected t\links.t ..................... Failed 21/37 subtests (less 5 skipped subtests: 11 okay) t\link_counts.t ............... ok t\line_counters.t ............. ok t\file_sizes.t ................ ok t\owner.t ..................... skipped: I can't find a file to test with: The getpwu id function is unimplemented at t\owner.t line 24. t\rt\30346.t .................. ok Test Summary Report ------------------- t\dm_skeleton.t (Wstat: 0 Tests: 19 Failed: 5) Failed tests: 15-19 t\links.t (Wstat: 0 Tests: 31 Failed: 15) Failed tests: 14, 17-21, 24-32 Parse errors: Tests out of sequence. Found (7) but expected (6) Tests out of sequence. Found (8) but expected (7) Tests out of sequence. Found (9) but expected (8) Tests out of sequence. Found (10) but expected (9) Tests out of sequence. Found (11) but expected (10) Displayed the first 5 of 27 TAP syntax errors. Re-run prove with the -p option to see them all. Files=14, Tests=176, 2 wallclock secs ( 0.20 usr + 0.03 sys = 0.23 CPU) Result: FAIL Failed 2/14 test programs. 20/176 subtests failed.
On Thu May 20 19:04:16 2010, MTHURN wrote: Show quoted text
> This is ActivePerl build 1004 (5.10.0) on Windows XP Home SP3
t\dm_skeleton.t is fixed in the repository. I suppose that t\links.t errors are test ones only. It seems that many tests, that should be skipped on Windows, are executed. IMHO, the whole test file should be skipped on Windows. Show quoted text
> Test Summary Report > ------------------- > t\dm_skeleton.t (Wstat: 0 Tests: 19 Failed: 5) > Failed tests: 15-19 > t\links.t (Wstat: 0 Tests: 31 Failed: 15) > Failed tests: 14, 17-21, 24-32 > Parse errors: Tests out of sequence. Found (7) but expected (6) > Tests out of sequence. Found (8) but expected (7) > Tests out of sequence. Found (9) but expected (8) > Tests out of sequence. Found (10) but expected (9) > Tests out of sequence. Found (11) but expected (10) > Displayed the first 5 of 27 TAP syntax errors. > Re-run prove with the -p option to see them all. > Files=14, Tests=176, 2 wallclock secs ( 0.20 usr + 0.03 sys = 0.23 CPU) > Result: FAIL > Failed 2/14 test programs. 20/176 subtests failed.
-- Alexandr Ciornii, http://chorny.net
I've released 1.28_01 and skip all the links.t tests if symlink() fails. We'll see what happens
Is this still happening on the latest version of Test::File?
On Mon Jan 30 20:52:56 2012, BAREFOOT wrote: Show quoted text
> Is this still happening on the latest version of Test::File?
Yes. Below is what happens with Test-File-1.31 distro This is perl 5, version 12, subversion 2 (v5.12.2) built for MSWin32-x86-multi-thread (with 8 registered patches, see perl -V for more detail) Binary build 1202 [293621] provided by ActiveState Built Sep 6 2010 23:36:03 C:\Perl\bin\perl.exe "-MTest::Manifest" "-e" "run_t_manifest(0, 'blib\lib', 'blib\arch', )" t\load.t ...................... ok t\pod.t ....................... ok t\pod_coverage.t .............. ok t\normalize.t ................. ok # MSWin32 t\dm_skeleton.t ............... ok t\win32.t ..................... ok t\obviously_non_multi_user.t .. ok t\test_files.t ................ ok t\test_dirs.t ................. ok # File [readable] does not exist # Failed test 'readable exists' # at t\links.t line 62. # Failed test at t\links.t line 92. # STDOUT is: # ok 1 # skip file_is_symlink_ok doesn't work on systems without symlinks! # # not: # ok 1 - This is my test name # # as expected # Failed test at t\links.t line 96. # STDOUT is: # ok 1 # skip symlink_target_dangles_ok doesn't work on systems without symlinks! # # not: # ok 1 - This is my test name # # as expected # Failed test at t\links.t line 100. # STDOUT is: # ok 1 # skip symlink_target_exists_ok doesn't work on systems without symlinks! # # not: # ok 1 - This is my test name # # as expected # Failed test at t\links.t line 105. # STDOUT is: # ok 1 # skip symlink_target_exists_ok doesn't work on systems without symlinks! # ok 2 # skip symlink_target_is doesn't work on systems without symlinks! # # not: # ok 1 # skip file_is_symlink_ok doesn't work on systems without symlinks! # ok 2 - This is my test name # # as expected # Failed test at t\links.t line 121. # STDOUT is: # ok 1 # skip file_is_symlink_ok doesn't work on systems without symlinks! # # not: # not ok 1 - This is my test name # # as expected # STDERR is: # # not: # # File [readable] is not a symlink! # # Failed test 'This is my test name' # # at t\links.t line 120. # # as expected # Failed test at t\links.t line 130. # STDOUT is: # ok 1 # skip file_is_symlink_ok doesn't work on systems without symlinks! # # not: # not ok 1 - This is my test name # # as expected # STDERR is: # # not: # # File [not_there] is not a symlink! # # Failed test 'This is my test name' # # at t\links.t line 129. # # as expected # Failed test at t\links.t line 139. # STDOUT is: # ok 1 # skip symlink_target_dangles_ok doesn't work on systems without symlinks! # # not: # not ok 1 - This is my test name # # as expected # STDERR is: # # not: # # File [not_there] is not a symlink! # # Failed test 'This is my test name' # # at t\links.t line 138. # # as expected # Failed test at t\links.t line 148. # STDOUT is: # ok 1 # skip symlink_target_is doesn't work on systems without symlinks! # # not: # not ok 1 - This is my test name # # as expected # STDERR is: # # not: # # File [readable] is not a symlink! # # Failed test 'This is my test name' # # at t\links.t line 147. # # as expected # Failed test at t\links.t line 157. # STDOUT is: # ok 1 # skip symlink_target_exists_ok doesn't work on systems without symlinks! # # not: # not ok 1 - readable is a symlink # # as expected # STDERR is: # # not: # # File [readable] is not a symlink! # # Failed test 'readable is a symlink' # # at t\links.t line 156. # # as expected # Failed test at t\links.t line 169. # STDOUT is: # ok 1 # skip symlink_target_exists_ok doesn't work on systems without symlinks! # # not: # not ok 1 # skip file_is_symlink_ok doesn't work on systems without symlinks! # # as expected # STDERR is: # # not: # # Symlink [readable_sym] points to non-existent target [not_there]! # # Failed test 'readable_sym is a symlink' # # at t\links.t line 168. # # as expected # Failed test at t\links.t line 179. # STDOUT is: # ok 1 # skip symlink_target_is doesn't work on systems without symlinks! # # not: # not ok 1 - symlink readable_sym points to not_there # # as expected # STDERR is: # # not: # # Failed test 'symlink readable_sym points to not_there' # # at t\links.t line 178. # # got: readable # # expected: not_there # # as expected # Failed test at t\links.t line 193. # STDOUT is: # ok 1 # skip symlink_target_exists_ok doesn't work on systems without symlinks! # # not: # not ok 1 # skip file_is_symlink_ok doesn't work on systems without symlinks! # # as expected # STDERR is: # # not: # # Symlink [readable_sym] points to # # got: readable # # expected: writeable # # Failed test 'readable_sym is a symlink' # # at t\links.t line 192. # # as expected # Failed test at t\links.t line 204. # STDOUT is: # ok 1 # skip symlink_target_dangles_ok doesn't work on systems without symlinks! # # not: # not ok 1 - This is my test name # # as expected # STDERR is: # # not: # # Symlink [readable_sym] points to existing file [readable] but shouldn't! # # Failed test 'This is my test name' # # at t\links.t line 203. # # as expected t\links.t ..................... Failed 20/37 subtests (less 5 skipped subtests: 12 okay) t\link_counts.t ............... ok t\line_counters.t ............. ok t\file_sizes.t ................ ok t\file_contains.t ............. ok t\owner.t ..................... skipped: I can't find a file to test with: The getpwuid function is unimplemented at t\owner.t line 23. t\rt\30346.t .................. ok Test Summary Report ------------------- t\links.t (Wstat: 0 Tests: 31 Failed: 14) Failed tests: 14, 18-21, 24-32 Parse errors: Tests out of sequence. Found (7) but expected (6) Tests out of sequence. Found (8) but expected (7) Tests out of sequence. Found (9) but expected (8) Tests out of sequence. Found (10) but expected (9) Tests out of sequence. Found (11) but expected (10) Displayed the first 5 of 27 TAP syntax errors. Re-run prove with the -p option to see them all. Files=16, Tests=212, 5 wallclock secs ( 0.17 usr + 0.09 sys = 0.27 CPU) Result: FAIL Failed 1/16 test programs. 14/212 subtests failed. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0xff'
Okay, I agree with you that the whole file should be skipped on Windows. I've changed the "skip" to a "plan skip_all" so that should do it. I'm going to resolve the ticket; look for a fix as of dev version 1.31_02 (later tonight), which I will promote to prod release 1.32 hopefully next week, barring CPAN Testers issues. Thanks for the report.