diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | t/superuser--should-restart.t | 10 |
2 files changed, 9 insertions, 2 deletions
@@ -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(); |