summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--t/superuser--should-restart.t10
2 files changed, 9 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 093436e8..fc62dd18 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,7 @@
o add more extensive tests
o describe it more
o disable fsync/fdatasync while running tests
+ o make it more robust
Version 8.121 - 8 April 2020
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();