commit c9a206f15a529dcf358b0fb3910343432d054d9b
parent fbfb0a92b7411d0a40cebacfcca97aa8c5fd2d22
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Sun, 24 Apr 2016 14:28:53 +0200
19-unit.t: add test for get_local_outdated_versions() with LO false
Diffstat:
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/t/19-unit.t b/t/19-unit.t
@@ -8,10 +8,10 @@ use Test::More;
use Test::Exit;
use FindBin '$RealBin';
use lib "$RealBin/../SBO-Lib/lib";
-use SBO::Lib qw/ script_error usage_error open_fh %config indent get_installed_packages get_sbo_location get_sbo_locations /;
+use SBO::Lib qw/ script_error usage_error open_fh %config indent get_installed_packages get_sbo_location get_sbo_locations get_local_outdated_versions /;
use Capture::Tiny qw/ capture_merged /;
-plan tests => 33;
+plan tests => 34;
# 1-2: test script_error();
{
@@ -202,3 +202,9 @@ SKIP: {
is (%res+0, 0, q"get_sbo_locations('nonexistentslackbuild') returned an empty hash");
}
+
+# 34: test get_local_outdated_versions();
+{
+ local $config{LOCAL_OVERRIDES} = 'FALSE';
+ is(scalar get_local_outdated_versions(), 0, 'get_local_outdated_versions() returned an empty list');
+}