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
{