From c9a206f15a529dcf358b0fb3910343432d054d9b Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Sun, 24 Apr 2016 14:28:53 +0200 Subject: 19-unit.t: add test for get_local_outdated_versions() with LO false --- t/19-unit.t | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 't') 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'); +} -- cgit v1.2.3