[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

t/op/exec.t fails on Fedora



I am trying to build Perl (
rsync://public.activestate.com/perl-current/ ) on Fedora 8,
2.6.24.7-92.fc8.

The test t/op/exec.t is failing on line 97. Apparently, running the
following code:

system { "lskdfj" } "lskdfj"';
[download]

... on Fedora sets $! to "Not a directory". Perl 5.8 on Ubuntu and
Perl 5.10 on Cygwin both set $! to "No such file or directory", which
would make the test pass.

Is it the expected behavior on Fedora?

I tried asking about it on perlmonks (
http://www.perlmonks.com/?node_id=695308 ). Moritz Lentz kindly
suggested running a C program that uses execl() and see what kind of
an error it produces. It produced "No such file or directory". Here's
the C code:

#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>

int main(int argc, char** argv) {
    execl("sadlfjsdf", "foo");
    printf("%s\n", strerror(errno)); # prints in the same environment
}

Also, it looks like something like this has been discussed once -
http://www.nntp.perl.org/group/perl.perl5.porters/2006/04/msg111460.html

But i don't see a solution there.

Thanks in advance.

-- 
Amir Elisha Aharoni

English - http://aharoni.wordpress.com
עברית - http://haharoni.wordpress.com

"We're living in pieces,
 I want to live in peace." - T. Moore

Follow-Ups from:
"Rafael Garcia-Suarez" <rgarciasuarez@gmail.com>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]