X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=installcheck%2FAmanda_Changer_null.pl;h=50a98c190bf889deaf169f635a7405eadc69fbc0;hb=0ab9787cd7de76aad522ee8d55ed7e87e3047458;hp=dad5e8a3aed6370495e8246ec7216e51cd8bc3d1;hpb=fd48f3e498442f0cbff5f3606c7c403d0566150e;p=debian%2Famanda diff --git a/installcheck/Amanda_Changer_null.pl b/installcheck/Amanda_Changer_null.pl index dad5e8a..50a98c1 100644 --- a/installcheck/Amanda_Changer_null.pl +++ b/installcheck/Amanda_Changer_null.pl @@ -1,4 +1,4 @@ -# Copyright (c) 2009 Zmanda, Inc. All Rights Reserved. +# Copyright (c) 2009, 2010 Zmanda, Inc. All Rights Reserved. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 as published @@ -16,9 +16,10 @@ # Contact information: Zmanda Inc, 465 S. Mathilda Ave., Suite 300 # Sunnyvale, CA 94086, USA, or: http://www.zmanda.com -use Test::More tests => 4; +use Test::More tests => 5; use File::Path; use strict; +use warnings; use lib "@amperldir@"; use Installcheck::Config; @@ -47,6 +48,7 @@ if ($cfg_result != $CFGERR_OK) { } my $chg = Amanda::Changer->new("chg-null:"); +is($chg->have_inventory(), '', "changer have inventory"); { my ($get_info, $check_info, $do_load, $got_res); @@ -104,3 +106,5 @@ my $chg = Amanda::Changer->new("chg-null:"); $try_eject->(); Amanda::MainLoop::run(); } + +$chg->quit();