projects
/
debian
/
amanda
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prepare to upload
[debian/amanda]
/
installcheck
/
Amanda_Changer_compat.pl
diff --git
a/installcheck/Amanda_Changer_compat.pl
b/installcheck/Amanda_Changer_compat.pl
index fc6d9ad0831054bd3979720bb310ffc77484389a..b2e311e13f60ff4dd1a20db2387150e86f67ba98 100644
(file)
--- a/
installcheck/Amanda_Changer_compat.pl
+++ b/
installcheck/Amanda_Changer_compat.pl
@@
-16,7
+16,7
@@
# Contact information: Zmanda Inc, 465 S. Mathilda Ave., Suite 300
# Sunnyvale, CA 94086, USA, or: http://www.zmanda.com
# Contact information: Zmanda Inc, 465 S. Mathilda Ave., Suite 300
# Sunnyvale, CA 94086, USA, or: http://www.zmanda.com
-use Test::More tests => 3
0
;
+use Test::More tests => 3
1
;
use File::Path;
use strict;
use warnings;
use File::Path;
use strict;
use warnings;
@@
-197,6
+197,8
@@
if ($cfg_result != $CFGERR_OK) {
my $chg = Amanda::Changer->new();
die($chg) if $chg->isa("Amanda::Changer::Error");
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,
try_run_changer(
sub { $chg->load(label => 'TAPE-01', res_cb => $check_res_cb); },
undef,
@@
-346,6
+348,7
@@
if ($cfg_result != $CFGERR_OK) {
die(join "\n", @errors);
}
die(join "\n", @errors);
}
+$chg->quit();
$chg = Amanda::Changer->new();
die($chg) if $chg->isa("Amanda::Changer::Error");
$chg = Amanda::Changer->new();
die($chg) if $chg->isa("Amanda::Changer::Error");
@@
-444,6
+447,7
@@
die($chg) if $chg->isa("Amanda::Changer::Error");
$get_info->();
Amanda::MainLoop::run();
}
$get_info->();
Amanda::MainLoop::run();
}
+$chg->quit();
# test two simultaneous invocations of info()
# test two simultaneous invocations of info()
@@
-534,6
+538,7
@@
sub test_except_slots {
}
test_except_slots(\&Amanda::MainLoop::quit);
Amanda::MainLoop::run();
}
test_except_slots(\&Amanda::MainLoop::quit);
Amanda::MainLoop::run();
+$chg->quit();
unlink($changer_filename);
unlink($result_file);
unlink($changer_filename);
unlink($result_file);