summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-04-23 22:31:18 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-04-29 14:40:40 +0200
commit71e0694ff91cdfc214a23ab2e5fb7014a0bbe295 (patch)
treef894ed41655dfbc91d419539d06e1371920208a4
parent8e75243721dae1a087337813c223ce9760eec8ab (diff)
downloadurpmi-71e0694ff91cdfc214a23ab2e5fb7014a0bbe295.tar
urpmi-71e0694ff91cdfc214a23ab2e5fb7014a0bbe295.tar.gz
urpmi-71e0694ff91cdfc214a23ab2e5fb7014a0bbe295.tar.bz2
urpmi-71e0694ff91cdfc214a23ab2e5fb7014a0bbe295.tar.xz
urpmi-71e0694ff91cdfc214a23ab2e5fb7014a0bbe295.zip
fix "The plan was already output"
The error message being in some conditions: "The plan was already output at /usr/lib/perl5/5.22.3/Test/Builder.pm line 2510." We need both else we got: "Tests were run but no plan was declared and done_testing() was not seen." also fix inverted condition :-(
-rw-r--r--t/superuser--suggests.t10
1 files changed, 6 insertions, 4 deletions
diff --git a/t/superuser--suggests.t b/t/superuser--suggests.t
index 8e1fbf48..2376b166 100644
--- a/t/superuser--suggests.t
+++ b/t/superuser--suggests.t
@@ -17,10 +17,12 @@ use lib '.', 't';
use helper;
use urpm::util;
use Test::More;
-if (are_weak_deps_supported()) {
- plan 'no_plan';
-} else {
- plan skip_all => "Weak dependencies support is needed for those tests" ;
+BEGIN {
+ if (are_weak_deps_supported()) {
+ plan 'no_plan';
+ } else {
+ plan skip_all => "Weak dependencies support is needed for those tests" ;
+ }
}