mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-28 08:51:44 +00:00
Don't use /tmp in tempfile().
This commit is contained in:
@@ -24,7 +24,7 @@ my $cmd = "$trunk/bin/pt-fifo-split";
|
||||
my $output = `$cmd --help`;
|
||||
like($output, qr/Options and values/, 'It lives');
|
||||
|
||||
my ($fh, $filename) = tempfile("/tmp/pt-fifo-split-data.XXXXXXXXX", OPEN => 1, TMPDIR => 1, UNLINK => 1);
|
||||
my ($fh, $filename) = tempfile("pt-fifo-split-data.XXXXXXXXX", OPEN => 1, TMPDIR => 1, UNLINK => 1);
|
||||
$fh->autoflush(1);
|
||||
print { $fh } "$_\n" for 1..9;
|
||||
|
||||
|
Reference in New Issue
Block a user