Imported Upstream version 3.3.3
[debian/amanda] / installcheck / Amanda_Xfer.pl
index e2359b7e2403adf478e64e2a897cea5108bd739a..ffa454ddf6d63c9e7679ca1709d6fee149f12d89 100644 (file)
@@ -1,8 +1,9 @@
-# Copyright (c) 2008, 2009, 2010 Zmanda, Inc.  All Rights Reserved.
+# Copyright (c) 2008-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
@@ -267,9 +268,9 @@ pass("Two simultaneous transfers run to completion");
     my $xfer = Amanda::Xfer->new([
        Amanda::Xfer::Source::Random->new(1024*1024, $RANDOM_SEED),
        Amanda::Xfer::Filter::Process->new(
-           [ $Amanda::Constants::COMPRESS_PATH, $Amanda::Constants::COMPRESS_BEST_OPT ], 0, 1),
+           [ $Amanda::Constants::COMPRESS_PATH, $Amanda::Constants::COMPRESS_BEST_OPT ], 0),
        Amanda::Xfer::Filter::Process->new(
-           [ $Amanda::Constants::UNCOMPRESS_PATH, $Amanda::Constants::UNCOMPRESS_OPT ], 0, 1),
+           [ $Amanda::Constants::UNCOMPRESS_PATH, $Amanda::Constants::UNCOMPRESS_OPT ], 0),
        Amanda::Xfer::Dest::Null->new($RANDOM_SEED),
     ]);
 
@@ -299,7 +300,7 @@ pass("Two simultaneous transfers run to completion");
     my $xfer = Amanda::Xfer->new([
        Amanda::Xfer::Source::Fd->new($zerofd),
        Amanda::Xfer::Filter::Process->new(
-           [ $Amanda::Constants::COMPRESS_PATH, $Amanda::Constants::COMPRESS_BEST_OPT ], 0, 1),
+           [ $Amanda::Constants::COMPRESS_PATH, $Amanda::Constants::COMPRESS_BEST_OPT ], 0),
        Amanda::Xfer::Dest::Null->new(0),
     ]);
 
@@ -759,7 +760,7 @@ SKIP: {
                                                     2368*1024, 0);
        },
        [ "PART-1-OK", "PART-2-OK", "EOM",
-         "PART-3-OK",
+         "PART-2-OK",
          "DONE" ],
        "Amanda::Xfer::Dest::Taper::Splitter - LEOM hits in file 2 header");
     test_recovery_source(