# Contact information: Zmanda Inc, 465 S. Mathilda Ave., Suite 300
# Sunnyvale, CA 94086, USA, or: http://www.zmanda.com
-use Test::More tests => 30;
+use Test::More tests => 31;
use File::Path;
use strict;
use warnings;
my $chg = Amanda::Changer->new();
die($chg) if $chg->isa("Amanda::Changer::Error");
+is($chg->have_inventory(), '', "changer have inventory");
+
try_run_changer(
sub { $chg->load(label => 'TAPE-01', res_cb => $check_res_cb); },
undef,
die(join "\n", @errors);
}
+$chg->quit();
$chg = Amanda::Changer->new();
die($chg) if $chg->isa("Amanda::Changer::Error");
$get_info->();
Amanda::MainLoop::run();
}
+$chg->quit();
# test two simultaneous invocations of info()
}
test_except_slots(\&Amanda::MainLoop::quit);
Amanda::MainLoop::run();
+$chg->quit();
unlink($changer_filename);
unlink($result_file);