Re: [perl #60312] [BUG] OpenBSD Smolder test failures

2009-05-12 Thread Michael Peters

James Keenan via RT wrote:


arithmetics.t:
ok 7 - negate -0.0 # TODO -0.0 not implemented, TT #313 : still not passing
(Why is this showing up yellow rather than green on the Smolder report
if it is 'ok'?)


Because it's a TODO test. TODO tests aren't counted in the passing total whether 
they pass or not. That's a pretty standard TAP interpretation.


--
Michael Peters
Plus Three, LP



Re: [perl #60312] [BUG] OpenBSD Smolder test failures

2008-11-14 Thread Andy Dougherty
On Thu, 13 Nov 2008, chromatic wrote:

 On Monday 03 November 2008 09:38:11 Andy Dougherty wrote:
 
   3.  1 of the tests appears to fail depending on how the OS initial-
   cases 'Inf'.  Again, could this be addressed in a hints file?
 
  This too is a long-standing problem:  See [perl #19183].  It stalled
  pending a decision on whether or not parrot should try to enforce a single
  spelling of 'Inf' (and 'Nan', etc.) or whether the tests should patch over
  the issue.
 
 What does Perl 5 do?  Let's do that.  (No one else has made a decision.)

I'm pretty sure Perl 5 just does whatever the underlying system does.  At 
lesat I don't remember ever writing any Configure tests to do otherwise, 
and a quick look doesn't turn up anything obvious, and I don't think the 
test suite specifically tests for it.

-- 
Andy Dougherty  [EMAIL PROTECTED]


Re: [perl #60312] [BUG] OpenBSD Smolder test failures

2008-11-13 Thread chromatic
On Monday 03 November 2008 09:38:11 Andy Dougherty wrote:

  3.  1 of the tests appears to fail depending on how the OS initial-
  cases 'Inf'.  Again, could this be addressed in a hints file?

 This too is a long-standing problem:  See [perl #19183].  It stalled
 pending a decision on whether or not parrot should try to enforce a single
 spelling of 'Inf' (and 'Nan', etc.) or whether the tests should patch over
 the issue.

What does Perl 5 do?  Let's do that.  (No one else has made a decision.)

-- c


Re: [perl #60312] [BUG] OpenBSD Smolder test failures

2008-11-12 Thread Nicholas Clark
On Mon, Nov 10, 2008 at 01:03:47PM -0500, Andy Dougherty wrote:
 On Sat, 8 Nov 2008, chromatic wrote:


  +if (fabsl(ld) == 0.0  Parrot_signbit(ld))
  +info.flags |= FLAG_MINUS;
  +

 (I'm not sure how portable fabsl() is either, though it may not matter.
 I don't see any harm to just omitting it here.)

Me neither. Surely

  if (0.0 != -0.0) {
fputs(Your compiler is broken!, stderr);
  }

(not tested. Particularly, not tested on icc with the optimiser enabled)

Nicholas Clark


Re: [perl #60312] [BUG] OpenBSD Smolder test failures

2008-11-10 Thread Andy Dougherty
On Sat, 8 Nov 2008, chromatic wrote:

 On Monday 03 November 2008 09:38:11 Andy Dougherty wrote:
 
 I wonder if this patch fixes things.  Certainly it does no harm on my box.  
 Parrot_signbit() already exists in the platform files, so we might as well 
 use it.

 --- src/spf_render.c  (revision 32475)
 +++ src/spf_render.c  (local)
 @@ -724,7 +724,12 @@
  STRING *ts;
  const HUGEFLOATVAL thefloat =
  obj-getfloat(interp, info.type, obj);
 +const long double ld = (long double)thefloat;
  
 +/* force negative float zero to -0.0 in output */
 +if (fabsl(ld) == 0.0  Parrot_signbit(ld))
 +info.flags |= FLAG_MINUS;
 +

Unfortunately, whether or not signbit takes a double or a 'long double' 
appears to depend on the platform.  On Linux, signbit is a macro which 
is supposed to work for all floating point types.  On Solaris, there are 
separate signbitf(), signbit() and signbitl() types to deal with float, 
double, and long double respectively.  Probably whatever piece of
Configure figures out HUGEFLOATVAL should also figure out the
appropriate Parrot_signbitH() or some such to use with it.  (I'd guess
it's almost always Parrot_signbitl().)

(I'm not sure how portable fabsl() is either, though it may not matter.
I don't see any harm to just omitting it here.)

-- 
Andy Dougherty  [EMAIL PROTECTED]


Re: [perl #60312] [BUG] OpenBSD Smolder test failures

2008-11-03 Thread Andy Dougherty
On Sun, 2 Nov 2008, James Keenan wrote:

 # New Ticket Created by  James Keenan 
 # Please include the string:  [perl #60312]
 # in the subject line of all future correspondence about this issue. 
 # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=60312 
 
 
 Thanks to some automated test reporting setups (which I think are  
 still coming from magnachef), we are getting a steady stream of test  
 reports on the Smolder site from FreeBSD, NetBSD and OpenBSD.  Of the  
 three, the first two generally pass 100% of tests, but OpenBSD's  
 performance has often been much poorer.  Of late, OpenBSD has been  
 passing 99.95% of its tests, which is a clear improvement over just a  
 month ago.  So I figured it would probably be good to put all the  
 failures we're still getting on OpenBSD in one place to see if  
 patterns emerge.
 
 I want to stress that I have neither experience with, nor access to,  
 OpenBSD.  So I have no particular insight into these failures, nor  
 can I directly test patches.
 
 As of today, there are 6 tests failing on OpenBSD, as reported on  
 Smolder.

Nice job pulling out the relevant tests and figuring out what's going on!

 Observations:
 1.  All 6 of these tests are marked to be skipped on Win32.  So  
 perhaps the reason they're failing on OpenBSD is the same as that for  
 Win32.  If so, then we could add 'OpenBSD' to the SKIP messages for  
 each.

I have never liked that plan -- skipping tests simply because they fail 
just hides the problem.  As a short-term step to keep from being 
distracted, sure, it's a good strategy.  But such sort term fixes tend 
to become very long-lived, leading folks to forget there even was a 
problem.  If the failing tests themselves are the problem, they should 
just be deleted.

 2.  4 of the tests appear to fail depending on how the OS 'spells'  
 the negation of zero.  Could we address this in a hints file?

This is a long-standing problem:  See [perl #28170] and [perl #30737]. The 
last time I looked at this, the it seemed we should probably use 
signbit(), if available.  (If it's not available, a fallback is needed, 
but it's likely to usually be available.)  However, I don't know why 
OpenBSD would differ from NetBSD in this regard.  Certainly the math.c 
platform files are nearly identical.  Are the underlying machines and 
perl5 configurations the same for the NetBSD and OpenBSD tests?  The 
'myconfig' files from each configuration would be helpful in trying to 
assess what's the same and what's different.

 3.  1 of the tests appears to fail depending on how the OS initial- 
 cases 'Inf'.  Again, could this be addressed in a hints file?

This too is a long-standing problem:  See [perl #19183].  It stalled 
pending a decision on whether or not parrot should try to enforce a single 
spelling of 'Inf' (and 'Nan', etc.) or whether the tests should patch over 
the issue.

-- 
Andy Dougherty  [EMAIL PROTECTED]


Re: [perl #60312] [BUG] OpenBSD Smolder test failures

2008-11-03 Thread Andy Dougherty
On Mon, 3 Nov 2008, James Keenan via RT wrote:

  Are the underlying machines and 
  perl5 configurations the same for the NetBSD and OpenBSD tests?  
 
 I believe so.  I think magnachef has them set up as virtual machines on
 the same underlying box.  He's working on getting me accounts on them
 and, if that comes through, I'll be able to post Configure.pl and make
 output.

Even more immediately useful would be the 'myconfig' info for each 
configuration.  I designed the file to be useful in precisely this sort of 
situation.

-- 
Andy Dougherty  [EMAIL PROTECTED]