[svk-commit] r2524 - trunk/t
nobody at bestpractical.com
nobody at bestpractical.com
Mon Aug 6 09:15:25 EDT 2007
Author: ruz
Date: Mon Aug 6 09:15:24 2007
New Revision: 2524
Modified:
trunk/t/80memory.t
Log:
* make test really pass or skip when user has no BSD::Resource module
Modified: trunk/t/80memory.t
==============================================================================
--- trunk/t/80memory.t (original)
+++ trunk/t/80memory.t Mon Aug 6 09:15:24 2007
@@ -2,7 +2,7 @@
use strict;
BEGIN {
-d '/proc' or
- eval { use BSD::Resource; } or
+ eval { require BSD::Resource; } or
plan( skip_all => "No /proc and no BSD::Resources" );
}
use SVK::Test;
@@ -17,7 +17,7 @@
return $ret;
}
} else {
- use BSD::Resource;
+ require BSD::Resource;
$curr_mem = sub {
my @r = BSD::Resource::getrusage();
return $r[2];
More information about the svk-commit
mailing list