Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DBD-Oracle CPAN distribution.

Report information
The Basics
Id: 75263
Status: resolved
Priority: 0/
Queue: DBD-Oracle

People
Owner: Nobody in particular
Requestors: dhorne [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.38
Fixed in: 1.39_00



Subject: Exit code tests fail in t/10general.t
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)
perl 5.10.1 by the way
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
Show quoted text
> 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. >
Thanks - this fixed it. I agree that a note in the tests would be helpful
Subject: Re: [rt.cpan.org #75263] Exit code tests fail in t/10general.t
Date: Fri, 24 Feb 2012 16:18:16 -0500
To: bug-DBD-Oracle [...] rt.cpan.org
From: Yanick Champoux <champoux [...] pythian.com>
I've added a diagnostic for 10-general.t, and added a small blurb in DBD::Oracle::Troubleshoot about the whole thing. Patch is at https://github.com/yanick/DBD-Oracle/commit/255ebb9bbc8d53d319dd812c30cd42d08e59c9a9 and will make it to the svn repo real soon(tm). `/anick -- -- Pythian proud winner of Oracle North America Titan Award for Exadata Solution...watch the video on pythian.com