public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] false success for exp test.
@ 2009-09-29  7:32 Pavel Kiryukhin
  2009-10-13 12:13 ` Subrata Modak
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Kiryukhin @ 2009-09-29  7:32 UTC (permalink / raw)
  To: ltp-list; +Cc: vksavl

[-- Attachment #1: Type: text/plain, Size: 270 bytes --]

Hi,
if I get it right there is error in
ltp-full-20090831/testcases/misc/math/float/exp_log/genexp.c (see
genexp_resfile.patch)
Resulting file exp_out.ref is wrong, but it is not catch by test -
nan_compare.patch make correct nan comparison.
--
Regards,
Pavel Kiryukhin

[-- Attachment #2: genexp_resfile.patch --]
[-- Type: application/octet-stream, Size: 367 bytes --]

--- testcases/misc/math/float/exp_log/genexp.c_org	2009-09-28 14:58:33.944827409 +0400
+++ testcases/misc/math/float/exp_log/genexp.c	2009-09-28 15:03:10.860101133 +0400
@@ -51,7 +51,7 @@
 	Inc = log( exp(1)/10 );
 
 	for (i=0; i<nbVal; i++)
-		tabR[i] = log ( (Inc*i) + Inc );
+		tabR[i] = exp ( (Inc*i) + Inc );
 
 
 	fp = open(F_name,O_RDWR|O_CREAT|O_TRUNC,0777);

[-- Attachment #3: nan_compare.patch --]
[-- Type: application/octet-stream, Size: 431 bytes --]

--- testcases/misc/math/float/thread_code.c_org	2009-09-27 22:28:47.742043227 +0400
+++ testcases/misc/math/float/thread_code.c	2009-09-28 13:41:51.799827269 +0400
@@ -124,7 +124,7 @@
 
 	x = fabs(r - e); /* diff expected/computed */
 
-	if(x > EPS) { /* error ? */
+	if ((x > EPS) || (x != x)) { /* error ? */
 		/* compute exponent parts */
 		(void)frexp(r, &pr); /* for computed */
 		(void)frexp(x, &px); /* for difference */

[-- Attachment #4: Type: text/plain, Size: 401 bytes --]

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf

[-- Attachment #5: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LTP] false success for exp test.
  2009-09-29  7:32 [LTP] false success for exp test Pavel Kiryukhin
@ 2009-10-13 12:13 ` Subrata Modak
  0 siblings, 0 replies; 2+ messages in thread
From: Subrata Modak @ 2009-10-13 12:13 UTC (permalink / raw)
  To: Pavel Kiryukhin; +Cc: ltp-list

On Tue, 2009-09-29 at 11:32 +0400, Pavel Kiryukhin wrote: 
> Hi,
> if I get it right there is error in
> ltp-full-20090831/testcases/misc/math/float/exp_log/genexp.c (see
> genexp_resfile.patch)
> Resulting file exp_out.ref is wrong, but it is not catch by test -
> nan_compare.patch make correct nan comparison.

Thanks.

Regards--
Subrata

> --
> Regards,
> Pavel Kiryukhin
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-13 13:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-29  7:32 [LTP] false success for exp test Pavel Kiryukhin
2009-10-13 12:13 ` Subrata Modak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox