Skip Menu |

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

Report information
The Basics
Id: 13280
Status: resolved
Priority: 0/
Queue: File-Stat-Bits

People
Owner: FEDOROV [...] cpan.org
Requestors: pirzyk [...] freebsd.org
Cc:
AdminCc:

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



Subject: Fix for make test on Solaris systems.
when doing a dev_join/major/minor subroutine calls, you need to use $st->rdev and not $st->dev as the latter is used in creating the major/minor number for a special file, whereas the former (dev) is used for what filesystem the file resides on. Here is a patch to fix the test: --- ./t/0.t.orig 2005-06-16 14:29:07.990487000 -0500 +++ ./t/0.t 2005-06-16 14:28:33.282156000 -0500 @@ -59,13 +59,13 @@ if ( defined major(0) ) { - my ($major, $minor) = dev_split( $st->dev ); + my ($major, $minor) = dev_split( $st->rdev ); ok( is_int($major) and is_int($minor) );#17 - ok( dev_join($major, $minor) == $st->dev );#18 + ok( dev_join($major, $minor) == $st->rdev );#18 - ok( $major == major($st->dev) );#19 - ok( $minor == minor($st->dev) );#20 + ok( $major == major($st->rdev) );#19 + ok( $minor == minor($st->rdev) );#20 } else {
From: Module Author
Fixed in version 0.19, your patch applied, thanks. Could you test it again on Solaris? My apologies for so long delay.
current version is 1.0