mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
perl: silence usage of add_cdrom in test
One test explicitly tests add_cdrom, so silence the deprecation warning only for that function.
This commit is contained in:
@@ -40,5 +40,8 @@ ok ($g->get_path () ne "", "path is empty");
|
||||
|
||||
$g->add_drive ("/dev/null");
|
||||
ok (1, "add drive");
|
||||
$g->add_cdrom ("/dev/zero");
|
||||
ok (1, "add cdrom");
|
||||
do {
|
||||
no warnings 'deprecated';
|
||||
$g->add_cdrom ("/dev/zero");
|
||||
ok (1, "add cdrom");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user