Michael Peppler
Sybase Consulting
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
Sybase on Linux FAQ
Sybperl FAQ
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: michael dot peppler at bnpparibas dot com
Subject: Re: DBD::Sybase 1.07 install on Solaris 8 - failing t/exec.t test #11
Date: Nov 3 2005 12:01PM

I think that that's the problem - with normal double values the 5.4 value
doesn't end up "incorrect"

That being said - float/double values are NOT exact, so what you are seeing
isn't an error, really. It's closer to a test error (i.e. the test should
know better than to make exact comparisons of float/double values).

If it was my server I'd just do the install as it is.


Internet - 03/11/2005 12:21

Please respond to

Sent by:

To:    sybperl-l


Subject:    Re: DBD::Sybase 1.07 install on Solaris 8 - failing t/exec.t
       test #11

On Nov 2, 2005, at 10:21 PM, Michael Peppler wrote:
> On Wed, 2005-11-02 at 15:03 -0800, Greg Earle wrote:
>> I added a
>> print($out[0] - 5.40000000000000035527136788005009);
>> after the
>> print("@out\n");
>> Michael suggested, and, and instead of seeing
>> 5.40000000000000035527136788005009
>> 0
>> as I expected, I get
>> 5.40000000000000035527136788005009
>> 3.08148791101957736488956470813588e-33
>> So it looks like there's no way for me to have an exact match test.
>> (So I commented that test out after all <*grin*>)
> Do you have long doubles enabled on your perl?

solaris8:1:42 [/] # /opt/harvestperl/bin/perl5.8.7 -V
Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
     osname=solaris, osvers=2.7, archname=sun4-solaris-thread-multi-ld
     uname='sunos sol7 5.7 generic_106541-20 sun4u sparc sunw,ultraax-mp
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=define use5005threads=undef useithreads=define
     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
     use64bitint=undef use64bitall=undef uselongdouble=define
     usemymalloc=n, bincompat5005=undef


Characteristics of this binary (from libperl):

Apparently so.  I don't recall explicitly choosing it, but
given that it's Solaris and there's 64-bit support, maybe I thought
it was the "right choice".  Should I rebuild Perl to not use them?

      - Greg

This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 


Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.