aboutsummaryrefslogtreecommitdiff
path: root/t/19-unit.t
diff options
context:
space:
mode:
Diffstat (limited to 't/19-unit.t')
-rwxr-xr-xt/19-unit.t10
1 files changed, 8 insertions, 2 deletions
diff --git a/t/19-unit.t b/t/19-unit.t
index 7c0e0be..071a18d 100755
--- 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');
+}