Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 34613
Status: resolved
Priority: 0/
Queue: Test-File

People
Owner: Nobody in particular
Requestors: sdanxs123 [...] yahoo.com
Cc:
AdminCc:

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



Subject: owner_is returns ok when checking directories agains unexistent users
Test::File::owner_is('/some/valid/path/to/a/directory','inexistent_user'); will return Use of uninitialized value in numeric eq (==) at /usr/local/share/perl/5.8.8/Test/File.pm line 877. ok 1 - /some/valid/path/to/a/directory belongs to inexistent_user 1..1 inexistent_user means user that is not in /etc/passwd
From: bdfoy [...] cpan.org
On Wed Apr 02 05:00:46 2008, danezu wrote: Show quoted text
> Test::File::owner_is('/some/valid/path/to/a/directory','inexistent_user'); > will return > Use of uninitialized value in numeric eq (==) at > /usr/local/share/perl/5.8.8/Test/File.pm line 877. > ok 1 - /some/valid/path/to/a/directory belongs to inexistent_user > 1..1 > > inexistent_user means user that is not in /etc/passwd
I've released 1.22_01 which should fix this. I now check that the user or group exists before I use it in a test. The owner_is and group_is tests fail if the user or group does not exist.