X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=installcheck%2Famcheckdump.pl;h=875cf0d950e94061b9edce1f8c09d8757bd258cc;hb=691567b16c13087b31ee4c2b6d038e57872fae82;hp=e4c28e7afc8134f7e005a900ef3734a1b8cc903b;hpb=fd48f3e498442f0cbff5f3606c7c403d0566150e;p=debian%2Famanda diff --git a/installcheck/amcheckdump.pl b/installcheck/amcheckdump.pl index e4c28e7..875cf0d 100644 --- a/installcheck/amcheckdump.pl +++ b/installcheck/amcheckdump.pl @@ -1,8 +1,9 @@ -# Copyright (c) 2007,2008 Zmanda, Inc. All Rights Reserved. +# Copyright (c) 2007-2012 Zmanda, Inc. All Rights Reserved. # -# This program is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License version 2 as published -# by the Free Software Foundation. +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY @@ -17,6 +18,8 @@ # Sunnyvale, CA 94086, USA, or: http://www.zmanda.com use Test::More tests => 9; +use strict; +use warnings; use lib "@amperldir@"; use Installcheck::Config; @@ -72,7 +75,7 @@ like(run_get('amcheckdump', 'TESTCONF'), qr(Validating), my $vtape1 = Installcheck::Run::vtape_dir(1); opendir(my $vtape_dir, $vtape1) || die "can't opendir $vtape1: $!"; -@dump1 = grep { /^0+1/ } readdir($vtape_dir); +my @dump1 = grep { /^0+1/ } readdir($vtape_dir); closedir $vtape_dir; for my $dumpfile (@dump1) {