Changed all the pt-osc tests to use full_output, since output uses eval {}

This commit is contained in:
Brian Fraser fraserb@gmail.com
2012-06-07 17:46:19 -03:00
parent e025b66bd2
commit ba2ddf682b
5 changed files with 15 additions and 21 deletions
+2 -5
View File
@@ -31,14 +31,11 @@ else {
my $master_dsn = 'h=127.1,P=12348,u=msandbox,p=msandbox';
my @args = (qw(--lock-wait-timeout 3), '--max-load', '');
my $output;
my $retval;
$output = output(
sub { $retval = pt_online_schema_change::main(@args,
my ($output, $retval) = full_output(
sub { pt_online_schema_change::main(@args,
"$master_dsn,D=mysql,t=user", "--alter", "add column (foo int)",
qw(--dry-run)) },
stderr => 1,
);
like(