Re: Problem in libwww 5.02 test program
Fred Wilson Horch (fhorch@trinet.com)
Thu, 26 Sep 1996 17:27:02 -0400 (EDT)
On Thu, 26 Sep 1996, Gary Howland wrote:
> There's a very trivial problem with t/html/parsefile.t, with the line
>
> $file = "/usr/tmp/lwp-test-$$";
>
> Not everyone has a /usr/tmp, so the test fails ...
This same problem bit me on BSDI 2.1. I would change the line to
$file = "/tmp/lwp-test-$$";
or
$file = "/var/tmp/lwp-test-$$";
or even test which of the above exists and use that, e.g.
if (-d "/tmp") {
$tmpdir = "/tmp";
}
elsif (-d "/var/tmp") {
$tmpdir = "/var/tmp";
}
else {
# Complain
}
$file = "$tmpdir/lwp-test-$$";
(Sorry I have no context diff.)
I also wanted to publicly thank everyone who has worked on libwww 5.02.
The library is fantastic! Keep up the good work!
Fred Wilson Horch <fhorch@trinet.com> (919) 833-2247 ext. 225, voice
TriNet Services, Inc. <http://www.trinet.com/> (919) 833-2276, fax