Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: [mp2] mod_perl test suite fails: msg#00152

apache.mod-perl.devel

Subject: Re: [mp2] mod_perl test suite fails

Volker Kroll wrote:
On Mon, 2003-12-15 at 10:29, Stas Bekman wrote:


no, no, it has nothing to do with the error_log, Can I see what you get when running:

/usr/bin/perl -Mlib=/root/modperl-2.0/Apache-Test/lib -MApache::TestRun \
-e 'eval {Apache::TestRun::run_root_fs_test(99, 99, q[/root/modperl-2.0/t])}';


OK

And this:

/usr/bin/perl -Mlib=/root/modperl-2.0/Apache-Test/lib -MApache::TestRun \
-e 'Apache::TestRun::run_root_fs_test(99, 99, q[/root/modperl-2.0/t])';

OK

That's very strange. two emails ago you said that this worked:
http://marc.theaimsgroup.com/?l=apache-modperl-dev&m=107123974823141&w=2

use File::Spec::Functions qw(catfile);
my($uid, $gid) = (getpwnam(qq[nobody]))[2..3];
$( = $) = $gid+0;
die qq[failed to change gid to $gid] if $( != $gid;
$< = $> = $uid+0;
die qq[failed to change uid to $uid] if $< != $uid;
my $dir = qq[/root];
my $file = catfile $dir, qq[.apache-test-file-$$-].time.int(rand);
END { unlink $file };
# -w
open TEST, qq[>$file] or die qq[failed to open $file: $!];
# -x
-f $file or die qq[$file cannot be looked up];
close TEST;
# -r
opendir DIR, $dir or die qq[failed to open dir $dir: $!];
defined readdir DIR or die qq[failed to read dir $dir: $!];
close DIR;
# all tests passed
print q{OK};

and started it out of a file.

I got:
failed to open /root/.apache-test-file-8981-10712397220: Permission
denied at test line 11.

----------------------------

Can you please look at run_root_fs_test()
in Apache/TestRun.pm and see what went wrong in transition? It should die with the same error as above.

You can modify the sub and test your changes, by running:

/usr/bin/perl -Mlib=/root/modperl-2.0/Apache-Test/lib -MApache::TestRun \
-e 'Apache::TestRun::run_root_fs_test(99, 99, q[/root/modperl-2.0/t])';

Thank you.
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxxxxxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
solaris.opensol...    editors.vim/200...    web.turbogears....    jakarta.ant.dev...    mathematics.max...    text.unicode.ge...    lang.ruby.core/...    xfce.announce/2...    network.centeri...    php.cvs.pear/20...    user-groups.lin...    kde.devel.quant...    file-systems.ar...    redhat.fedora.t...    apple.fink.auto...    gnome.orbit.gen...    qplus.devel/200...    culture.transpo...    video.dri.user/...    operators.nanog...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation