# Contact information: Zmanda Inc, 465 S. Mathilda Ave., Suite 300
# Sunnyvale, CA 94086, USA, or: http://www.zmanda.com
-use Test::More tests => 166;
+use Test::More tests => 167;
use strict;
use warnings;
+use Errno;
use Cwd qw(abs_path);
use lib "@amperldir@";
ok(!run($amreport, 'TESTCONF-NOSUCH', '--help'),
"amreport --help exits with status 1");
like($Installcheck::Run::stdout,
- qr/Usage: amreport conf/,
+ qr/Usage: amreport \[--version\]/,
"..and prints usage message");
like(run_get($amreport, 'TESTCONF-NOSUCH', '--version'),
or diag($Installcheck::Run::stderr);
ok(!-f $mail_output, "..produces no mail output");
is($Installcheck::Run::stdout, "", "..produces no stdout output");
+$! = &Errno::ENOENT;
+my $enoent = $!;
+like($Installcheck::Run::stderr,
+ qr/^error: the mailer '.*' is not an executable program\.$/,
+ "..produces correct stderr output");
results_match(
$printer_output,
$cat->get_text('postscript'),