[Pkg-libvirt-commits] [libguestfs] 01/29: tests: fix two minor warnings

Hilko Bengen bengen at moszumanska.debian.org
Sun Nov 1 17:15:00 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag upstream/1.29.49
in repository libguestfs.

commit 98e1e9bcc2a490d983ba3f54e85ae82ecc70543b
Author: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
Date:   Tue Jun 30 17:45:14 2015 +0800

    tests: fix two minor warnings
    
    "my" variable $output masks earlier declaration in same scope at /home/libguestfs/tests/daemon/test-btrfs.pl line 66.
    "my" variable @r masks earlier declaration in same scope at /home/libguestfs/tests/daemon/test-btrfs.pl line 72.
    
    Signed-off-by: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
---
 tests/daemon/test-btrfs.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/daemon/test-btrfs.pl b/tests/daemon/test-btrfs.pl
index 815ab1d..cd12086 100755
--- a/tests/daemon/test-btrfs.pl
+++ b/tests/daemon/test-btrfs.pl
@@ -63,13 +63,13 @@ EOF
     die unless $r[2]->{btrfssubvolume_path} eq "test3";
 
     # Test btrfs_qgroup_show.
-    my $output = <<EOF;
+    $output = <<EOF;
 qgroupid rfer excl 
 -------- ---- ---- 
 0/5      4096 4096 
 EOF
     set_btrfs_output ($output);
-    my @r = $g->btrfs_qgroup_show ("/");
+    @r = $g->btrfs_qgroup_show ("/");
     die unless @r == 1;
     die unless $r[0]->{btrfsqgroup_id} == "0/5";
     die unless $r[0]->{btrfsqgroup_rfer} == 4096;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list