Update issue_388.t, issue_47.t, issue_602.t. Rename issue_81.t to error_handling.t. Move issue_69.t tests into basics.t and remove issue_69.t.

This commit is contained in:
Daniel Nichter
2011-10-13 12:46:44 -06:00
parent dfcb7dc157
commit 60d8b1a710
9 changed files with 119 additions and 121 deletions

View File

@@ -26,8 +26,12 @@ else {
plan tests => 1;
}
# The sandbox servers run with lock_wait_timeout=3 and it's not dynamic
# so we need to specify --lock-wait-timeout=3 else the tool will die.
my $master_dsn = 'h=127.1,P=12345,u=msandbox,p=msandbox';
my @args = ($master_dsn, qw(--lock-wait-timeout 3));
my $output;
my $cnf = '/tmp/12345/my.sandbox.cnf';
$sb->load_file('master', 't/pt-table-checksum/samples/issue_602.sql');
# #############################################################################
@@ -35,14 +39,13 @@ $sb->load_file('master', 't/pt-table-checksum/samples/issue_602.sql');
# #############################################################################
$output = output(
sub {
pt_table_checksum::main("F=$cnf", qw(-t issue_602.t --chunk-size 5)) },
sub { pt_table_checksum::main(@args, qw(-t issue_602.t --chunk-size 5)) },
stderr => 1,
);
like(
$output,
qr/^issue_602\s+t\s+2/m,
qr/^\S+\s+0\s+0\s+11\s+2\s+/m,
"Checksums table despite invalid datetime"
);