diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-04-24 14:28:53 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-04-24 14:28:53 +0200 |
commit | c9a206f15a529dcf358b0fb3910343432d054d9b (patch) | |
tree | c5b373dd36275fece13020d5b6701bc1fe2eb68c /t | |
parent | fbfb0a92b7411d0a40cebacfcca97aa8c5fd2d22 (diff) | |
download | sbotools2-c9a206f15a529dcf358b0fb3910343432d054d9b.tar.xz |
19-unit.t: add test for get_local_outdated_versions() with LO false
Diffstat (limited to 't')
-rwxr-xr-x | t/19-unit.t | 10 |
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'); +} |