Imported Upstream version 3.3.0
[debian/amanda] / installcheck / Amanda_Changer_disk.pl
index 2b6b3fb3e27b6c383f1389a82e29517ab6847ed2..c5b144baf4c0e1d48784d185a8d2e184bd35abbf 100644 (file)
@@ -16,7 +16,7 @@
 # Contact information: Zmanda Inc, 465 S. Mathilda Ave., Suite 300
 # Sunnyvale, CA 94086, USA, or: http://www.zmanda.com
 
-use Test::More tests => 18;
+use Test::More tests => 19;
 use File::Path;
 use strict;
 use warnings;
@@ -84,6 +84,7 @@ chg_err_like($chg,
 
 $chg = Amanda::Changer->new("chg-disk:$taperoot");
 die($chg) if $chg->isa("Amanda::Changer::Error");
+is($chg->have_inventory(), '1', "changer have inventory");
 
 sub test_reserved {
     my ($finished_cb, @slots) = @_;
@@ -421,4 +422,5 @@ Amanda::MainLoop::run();
     Amanda::MainLoop::run();
 }
 
+$chg->quit();
 rmtree($taperoot);