Re: File::Temp::_gettemp warning
[email protected] ("H.Merijn Brand")
| Newsgroups | perl.perl5.porters,perl.daily-build |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 21 Feb 2001 18:11:42 -0500 [email protected] wrote: > There's also a fundemental problem with lib/ftmp-security.t. We have > no way of knowing if a test failed because File::Temp has failed or > because the admin has a peculiar way of setting up /tmp! In the > latter case, File::Temp is working perfectly, but the test will fail. > This is wrong. Agree. > This can be solved by using t/tmp instead of File::Spec->tmpdir. > t/lib/ftmp-security.t can create t/tmp and chmod it the way it likes, > then run tempfile() with it as the DIR. At the end, it can delete it. > > Soon t/tmp will be cannonized as part of the testing suite. How does it deal with lack of disk space? I've set up /tmp to have an avarage free space of 300 Mb, where my blead env has less than 200 and even that is not guaranteed. -- H.Merijn Brand using perl5.005.03 on HP-UX 10.20, HP-UX 11.00, AIX 4.2, AIX 4.3, DEC OSF/1 4.0 and WinNT 4.0 SP-6a, often with Tk800.020 and/or DBD-Unify ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/id/H/HM/HMBRAND/ Member of Amsterdam Perl Mongers (http://www.amsterdam.pm.org/)