Upgrade to PathTools 3.25
[p5sagit/p5-mst-13.2.git] / lib / File / Spec / t / tmpdir.t
CommitLineData
9d5071ba 1use strict;
2use Test;
3
4# Grab all of the plain routines from File::Spec
5use File::Spec;
6use File::Spec::Win32;
7
dfa4e5d3 8plan tests => 4;
9d5071ba 9
10ok 1, 1, "Loaded";
11
12my $num_keys = keys %ENV;
13File::Spec->tmpdir;
14ok scalar keys %ENV, $num_keys, "tmpdir() shouldn't change the contents of %ENV";
15
dfa4e5d3 16{
17 local %ENV;
18 File::Spec::Win32->tmpdir;
19 ok scalar keys %ENV, 0, "Win32->tmpdir() shouldn't change the contents of %ENV";
20}
21
9d5071ba 22File::Spec::Win32->tmpdir;
23ok scalar keys %ENV, $num_keys, "Win32->tmpdir() shouldn't change the contents of %ENV";