Skip Menu |

This queue is for tickets about the Net-Whois-IP CPAN distribution.

Report information
The Basics
Id: 92366
Status: resolved
Priority: 0/
Queue: Net-Whois-IP

People
Owner: Nobody in particular
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 1.14
Fixed in: (no value)



Subject: Temp file is forced to be in /tmp
SO_DEBUG forces output into /tmp: open(DEBUG,">>/tmp/Net.WhoisIP.log") or warn "Unable to open /tmp/$0.log"; It ignores the value in $TMPDIR (or $TEMP in Windows).
Upon reflection, what this should to is to use File::Spec->tmpdir() to determine the location of the temporary directory.
On 2014-01-22 07:03:10, NHORNE wrote: Show quoted text
> Upon reflection, what this should to is to use File::Spec->tmpdir() to > determine the location of the temporary directory.
Yes. /tmp doesn't exist on all platforms, and the directory must be unique so that multiple tests can run in parallel (the -j option in prove and HARNESS_OPTIONS).
Resolved in latest; 1.15