mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 13:11:32 +00:00
Fix for 903510: pt-tcp-model throws an error in --type=requests mode on empty file
This commit is contained in:
@@ -9,7 +9,7 @@ BEGIN {
|
||||
use strict;
|
||||
use warnings FATAL => 'all';
|
||||
use English qw(-no_match_vars);
|
||||
use Test::More tests => 2;
|
||||
use Test::More;
|
||||
|
||||
use PerconaTest;
|
||||
shift @INC; # our unshift (above)
|
||||
@@ -45,7 +45,19 @@ ok(
|
||||
'Analysis for sorted001.txt (issue 1341)'
|
||||
);
|
||||
|
||||
($output) = full_output(
|
||||
sub { pt_tcp_model::main(@args,
|
||||
'--type=requests', "$trunk/t/lib/samples/empty.txt"
|
||||
) }
|
||||
);
|
||||
|
||||
is(
|
||||
$output,
|
||||
'',
|
||||
"--type=requests doesn't die on an empty file",
|
||||
);
|
||||
|
||||
# #############################################################################
|
||||
# Done.
|
||||
# #############################################################################
|
||||
exit;
|
||||
done_testing;
|
||||
|
Reference in New Issue
Block a user