Skip Menu |

This queue is for tickets about the File-Data CPAN distribution.

Report information
The Basics
Id: 25854
Status: resolved
Priority: 0/
Queue: File-Data

People
Owner: richard.foley [...] rfi.net
Requestors: mike.bristow [...] thus.net
Cc:
AdminCc:

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



CC: bug-File-Data [...] rt.cpan.org
Subject: File::Data bug
Date: Tue, 27 Mar 2007 11:52:57 +0100
To: richard.foley [...] rfi.net
From: Mike Bristow <mike.bristow [...] thus.net>
Hi, The tests for File::Data fail[3] on Solaris [1]. I think this is because you assume that flock locks against yourself: the attached test program shows that this is not true for Solaris, but is true for RedHat[2], and FreeBSD-6. I presume that this is because on solaris perl uses fcntl to emulate flock (and missess, slightly), but I haven't really looked into that. I'm not sure what the right fix here is, to be honest... any ideas? [1] Solaris-10-i386, Solaris-9-sparc, Solaris-10-sparc, Solaris-8-sparc, & Solaris-9-i386. Didn't try Solaris-7 or earlier, nor Solaris-11. [2] redhat-3as-ia32 redhat-el4-i386 redhat-3fc-i386 redhat-fc4 redhat-fc5-i386 & redhat-fc6-i386 [3] : michaelb@construx-9 ~/File-Data; make test TEST_VERBOSE=1 PERL_DL_NONLAZY=1 /opt/MSHperl/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/test....1..16 # Running under perl version 5.008008 for solaris # Current time local: Tue Mar 27 10:18:43 2007 # Current time GMT: Tue Mar 27 10:18:43 2007 # Using Test.pm version 1.25 ok 1 ok 2 [2] re-read(./t/read) => o_new(File::Data=HASH(0x1c8c20))! [2] re-read(./t/write) => o_new(File::Data=HASH(0x1c8c08))! not ok 3 # Failed test 3 in t/test.t at line 75 # t/test.t line 75 is: ($i_errs == 0) ? ok(1) : ok(0); ok 4 ok 5 ok 6 ok 7 ok 8 ok 9 ok 10 ok 11 ok 12 ok 13 ok 14 ok 15 ok 16 FAILED test 3 Failed 1/16 tests, 93.75% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/test.t 16 1 6.25% 3 Failed 1/1 test scripts, 0.00% okay. 1/16 subtests failed, 93.75% okay. make: *** [test_dynamic] Error 29

Message body is not shown because sender requested not to inline it.

ancient ticket, not seen since, closing.