On Fri Feb 24 03:40:34 2012, DHORNE wrote:
Show quoted text> On CentOS 6.2, the tests
>
> is system("exit 1;"), 1<<8, 'system exit 1 should return 256';
> is system("exit 0;"), 0, 'system exit 0 should return 0';
>
> return
>
> t/10general.t ............ 1/30
> # Failed test 'system exit 1 should return 256'
> # at t/10general.t line 41.
> # got: '-1'
> # expected: '256'
>
> # Failed test 'system exit 0 should return 0'
> # at t/10general.t line 42.
> # got: '-1'
> # expected: '0'
> # Looks like you failed 2 tests of 30.
> t/10general.t ............ Dubious, test returned 2 (wstat 512, 0x200)
>
This is not unexpected and really needs documenting and perhaps even a
note adding to those tests when they fail. See
http://www.nntp.perl.org/group/perl.dbi.dev/2012/02/msg6837.html and
http://www.nntp.perl.org/group/perl.dbi.users/2009/06/msg34010.html for
detailed explanations.
It you need to continue using a bequeather to connect to a server on the
same host as the client add
bequeath_detach = yes
to your sqlnet.ora file or you won't be able to safely use fork/system
functions in Perl.
I'll leave this rt here as a reminder we need to document this and add a
"note" when the tests fail. We can perhaps pull the info required from
the postings I refer to above.
Martin
--
Martin J. Evans
Wetherby, UK