talexb has asked for the wisdom of the Perl Monks concerning the following question:

html/form.............OK robot/rules-dbm.......Can't open /home/tab/test-6180003: Permission denied at robot/rules-dbm.t line 9 robot/rules-dbm.......dubious Test return status 255 (wstat 65280, 0xff00) DIED. FAILED test 1-13

I'm trying to install LWP::UserAgent on Cygwin (running on Windows 98) and I've been battling with this problem for the last 24 hours. My latest approach was to change the line in the robot/rules-dbm.t test from

$file = "test-$$";
to
$file = "/home/tab/test-$$";
in the hopes that the definitive path to my home directory would be enough to avoid the write error that I appear to be getting. No dice.

Any here have any other suggestions about how I can get the test to pass, apart from bypassing the test altogther?

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Update: I've tried to create or find a world-writable directory in my Cygwin installation but have been stymied on both counts. I'm guessing that the DBM facility is a vital part of LWP::UserAgent, otherwise I'd just comment out the tests and get on with it. Puzzling.

Replies are listed 'Best First'.
Re: Failing tests on WWW::RobotRules::AnyDBM_File
by PodMaster (Abbot) on Jan 23, 2005 at 04:23 UTC
    any other suggestions about how I can get the test to pass, apart from bypassing the test altogther?
    Figure out why you're getting permission denied and fix it. How? Start by verifying that everything is the way it should be, from permissions, to the enviroment, to the modules you're loading and the perl you're using.

    Also run the test manually (path/to/perl -Mblib t/robot/rules-dbm.t ).

    I'm guessing that the DBM facility is a vital part of LWP::UserAgent, otherwise I'd just comment out the tests and get on with it.
    You're guessing wrong. Unless you plan on using WWW::RobotRules::AnyDBM_File, just move on (and no, you don't need to comment out the tests to do that). And even if the DBM facility was a vital part, its a permissions error, I doubt it has anything to do specifically with WWW::RobotRules::AnyDBM_Files.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.