Skip Menu |

This queue is for tickets about the File-Find-Rule-UnixPermissions CPAN distribution.

Report information
The Basics
Id: 132255
Status: new
Priority: 0/
Queue: File-Find-Rule-UnixPermissions

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

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



Subject: Test failures
The test suite seems to fail on some systems. See http://fast-matrix.cpantesters.org/?dist=File-Find-Rule-UnixPermissions%200.0.0 for an overview. On a Mac system test failure looks like this: ... # Failed test 'S_IRUSR+S_IWGRP' # at t/perms.t line 22. # "" returned for "test/b" # Failed test 'S_IXGRP or S_IWGRP' # at t/perms.t line 29. # "test/c" returned for "test/b test/c" # Looks like you failed 2 tests of 4. t/perms.t ......... Dubious, test returned 2 (wstat 512, 0x200) Failed 2/4 subtests ...
On 2020-03-28 16:38:04, SREZIC wrote: Show quoted text
> The test suite seems to fail on some systems. See http://fast- > matrix.cpantesters.org/?dist=File-Find-Rule-UnixPermissions%200.0.0 > for an overview. > > On a Mac system test failure looks like this: > > ... > # Failed test 'S_IRUSR+S_IWGRP' > # at t/perms.t line 22. > # "" returned for "test/b" > > # Failed test 'S_IXGRP or S_IWGRP' > # at t/perms.t line 29. > # "test/c" returned for "test/b test/c" > # Looks like you failed 2 tests of 4. > t/perms.t ......... > Dubious, test returned 2 (wstat 512, 0x200) > Failed 2/4 subtests > ...
Maybe the test assumes a specific order of files? Looking at two strace logs, one failing (Debian/jessie) and the other passing (Ubuntu 16.04) shows a different order of stat() calls: 14649 21:40:19.529092 stat("a", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 <0.000004> 14649 21:40:19.529109 stat("a", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 <0.000004> 14649 21:40:19.529132 stat("b", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 <0.000004> 14649 21:40:19.529149 stat("b", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 <0.000004> 14649 21:40:19.529172 stat("c", {st_mode=S_IFREG|0654, st_size=0, ...}) = 0 <0.000004> 14649 21:40:19.529188 stat("c", {st_mode=S_IFREG|0654, st_size=0, ...}) = 0 <0.000004> 14649 21:40:19.529207 chdir("/home/e/eserte/.cpan/build/2020032821/File-Find-Rule-UnixPermissions-0.0.0-0") = 0 <0.000005> 14649 21:40:19.529352 write(5, "not ok 3 - S_IRUSR+S_IWGRP\n", 27) = 27 <0.000009> 23997 20:41:12.589694 stat("c", {st_mode=S_IFREG|0654, st_size=0, ...}) = 0 <0.000035> 23997 20:41:12.589790 stat("c", {st_mode=S_IFREG|0654, st_size=0, ...}) = 0 <0.000034> 23997 20:41:12.589908 stat("b", {st_mode=S_IFREG|0664, st_size=0, ...}) = 0 <0.000035> 23997 20:41:12.590011 stat("b", {st_mode=S_IFREG|0664, st_size=0, ...}) = 0 <0.000033> 23997 20:41:12.590127 stat("a", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 <0.000042> 23997 20:41:12.590252 stat("a", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 <0.000040> 23997 20:41:12.590373 chdir("/home/cpansand/.cpan/build/2020032820/File-Find-Rule-UnixPermissions-0.0.0-0") = 0 <0.000033> 23997 20:41:12.590599 write(5, "ok 3 - S_IRUSR+S_IWGRP\n", 23) = 23 <0.000053>