summaryrefslogtreecommitdiffstats
path: root/t/superuser--should-restart.t
diff options
context:
space:
mode:
Diffstat (limited to 't/superuser--should-restart.t')
-rw-r--r--t/superuser--should-restart.t10
1 files changed, 8 insertions, 2 deletions
diff --git a/t/superuser--should-restart.t b/t/superuser--should-restart.t
index f9b282ef..4943e241 100644
--- a/t/superuser--should-restart.t
+++ b/t/superuser--should-restart.t
@@ -10,8 +10,14 @@ $ENV{URPMI_TEST_RESTART} = 1;
use strict;
use lib '.', 't';
use helper;
-use Test::More 'no_plan';
-plan skip_all => "A mounted /proc is required for those tests due to urpm::sys::_launched_time() relying on /proc/uptime" if ! -d "/proc/$$";
+use Test::More;
+BEGIN {
+ if (-d "/proc/$$") {
+ plan 'no_plan';
+ } else {
+ plan skip_all => "A mounted /proc is required for those tests due to urpm::sys::_launched_time() relying on /proc/uptime";
+ }
+}
need_root_and_prepare();