X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F105_io_atomic_w_utf8.t;h=d831409337f494b66da1544f937e0fe52bfa9b92;hb=8919e01e95856d3dd17037352ef93275cdcf2fbd;hp=6da8d3eb55ce3e526d5b1f4501a32ab83d3900f1;hpb=4fa64e865c99a6dcc3bec159a662300151d62fdf;p=gitmo%2FMooseX-Storage.git diff --git a/t/105_io_atomic_w_utf8.t b/t/105_io_atomic_w_utf8.t index 6da8d3e..d831409 100644 --- a/t/105_io_atomic_w_utf8.t +++ b/t/105_io_atomic_w_utf8.t @@ -4,6 +4,9 @@ use strict; use warnings; use Test::More; +use Test::TempDir; +use File::Spec::Functions; +my $dir = tempdir; BEGIN { eval "use IO::AtomicFile"; @@ -39,7 +42,7 @@ use utf8; ); } -my $file = 'temp.json'; +my $file = catfile($dir, 'temp.json'); { my $foo = Foo->new; @@ -81,4 +84,3 @@ unlink $file; '... got the string we expected'); } -unlink $file;