mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-25 21:54:48 +00:00
Explicit setter for out_fh.
This commit is contained in:
@@ -182,7 +182,7 @@ for my $method ( qw( curr_ts prev_ts first_ts ) ) {
|
||||
|
||||
is($obj->out_fh(), \*STDOUT, "by default, outputs to STDOUT");
|
||||
open my $fh, "<", \my $tmp;
|
||||
$obj->out_fh($fh);
|
||||
$obj->set_out_fh($fh);
|
||||
is($obj->out_fh(), $fh, "Changing it works");
|
||||
close($fh);
|
||||
is($obj->out_fh(), \*STDOUT, "and if we close the set filehandle, it reverts to STDOUT");
|
||||
|
Reference in New Issue
Block a user