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
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 554
Download (untitled) / with headers
text/plain 554b
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)
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-10808-1330072869-936.75263-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 22
perl 5.10.1 by the way
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-10813-1330075635-1500.75263-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 1352
Download (untitled) / with headers
text/plain 1.3k
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
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-10813-1330075635-1500.75263-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <rt-3.8.HEAD-10813-1330075635-1500.75263-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-10815-1330085147-498.75263-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 305
Download (untitled) / with headers
text/plain 305b
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
From champoux [...] pythian.com Fri Feb 24 16: 18:29 2012
MIME-Version: 1.0
X-Spam-Status: No, score=-2.03 tagged_above=-99.9 required=10 tests=[AWL=-0.909, BAYES_00=-1.9, SPF_NEUTRAL=0.779] autolearn=no
In-Reply-To: <rt-3.8.HEAD-10813-1330075635-1942.75263-5-0 [...] rt.cpan.org>
X-Spam-Flag: NO
Received-SPF: pass (google.com: domain of champoux [...] pythian.com designates 10.50.184.200 as permitted sender) client-ip=10.50.184.200;
References: <RT-Ticket-75263 [...] rt.cpan.org> <rt-3.8.HEAD-10813-1330075635-1942.75263-5-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <4F47FE98.1030306 [...] pythian.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -2.03
Authentication-Results: mr.google.com; spf=pass (google.com: domain of champoux [...] pythian.com designates 10.50.184.200 as permitted sender) smtp.mail=champoux [...] pythian.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 1F6FD2400B2 for <cpan-bug+DBD-Oracle [...] hipster.bestpractical.com>; Fri, 24 Feb 2012 16:18:29 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id onZglWhwNZ87 for <cpan-bug+DBD-Oracle [...] hipster.bestpractical.com>; Fri, 24 Feb 2012 16:18:27 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 425EB240032 for <bug-DBD-Oracle [...] rt.cpan.org>; Fri, 24 Feb 2012 16:18:26 -0500 (EST)
Received: (qmail 5123 invoked by uid 103); 24 Feb 2012 21:18:26 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 24 Feb 2012 21:18:26 -0000
Received: from na3sys009aog102.obsmtp.com (HELO na3sys009aog102.obsmtp.com) (74.125.149.69) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with SMTP; Fri, 24 Feb 2012 13:18:23 -0800
Received: from mail-iy0-f170.google.com ([209.85.210.170]) (using TLSv1) by na3sys009aob102.postini.com ([74.125.148.12]) with SMTP ID DSNKT0f+m+KPSEA7tSVnJxf9/m7X7VWY3RYQ [...] postini.com; Fri, 24 Feb 2012 13:18:22 PST
Received: by mail-iy0-f170.google.com with SMTP id k32so3517518iak.15 for <bug-DBD-Oracle [...] rt.cpan.org>; Fri, 24 Feb 2012 13:18:19 -0800 (PST)
Received: from mr.google.com ([10.50.184.200]) by 10.50.184.200 with SMTP id ew8mr5643760igc.1.1330118299212 (num_hops = 1); Fri, 24 Feb 2012 13:18:19 -0800 (PST)
Received: by 10.50.184.200 with SMTP id ew8mr4501249igc.1.1330118299084; Fri, 24 Feb 2012 13:18:19 -0800 (PST)
Received: by 10.50.184.200 with SMTP id ew8mr4501241igc.1.1330118298877; Fri, 24 Feb 2012 13:18:18 -0800 (PST)
Received: from [10.237.236.252] (host7.pythian.com. [209.217.100.70]) by mx.google.com with ESMTPS id df2sm2860121igb.0.2012.02.24.13.18.17 (version=SSLv3 cipher=OTHER); Fri, 24 Feb 2012 13:18:18 -0800 (PST)
Delivered-To: cpan-bug+DBD-Oracle [...] hipster.bestpractical.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
Subject: Re: [rt.cpan.org #75263] Exit code tests fail in t/10general.t
Return-Path: <champoux [...] pythian.com>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+DBD-Oracle [...] hipster.bestpractical.com
X-RT-Mail-Extension: dbd-oracle
Date: Fri, 24 Feb 2012 16:18:16 -0500
X-Spam-Level:
To: bug-DBD-Oracle [...] rt.cpan.org
From: Yanick Champoux <champoux [...] pythian.com>
X-GM-Message-State: ALoCoQnbvdNkhSH7cHD1J+hBbWiUUIeCu4GCo8ikGLLUtQsUdjZlyjWSMDwrr+oAI+Ajc0m/eKnMd/mY8QOlsk1drQJQD0Nity1RvGkVX3coHtBFTgdq9Jo=
RT-Message-ID: <rt-3.8.HEAD-10808-1330118309-1519.75263-0-0 [...] rt.cpan.org>
Content-Length: 397
Download (untitled) / with headers
text/plain 397b
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


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.