public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Pavel Kiryukhin <vksavl@gmail.com>
To: ltp-list@lists.sourceforge.net
Cc: vksavl@gmail.com
Subject: [LTP] false success for exp test.
Date: Tue, 29 Sep 2009 11:32:06 +0400	[thread overview]
Message-ID: <73cd086a0909290032o7f60b80buf41f1426bf5b3013@mail.gmail.com> (raw)

[-- 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

             reply	other threads:[~2009-09-29  7:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-29  7:32 Pavel Kiryukhin [this message]
2009-10-13 12:13 ` [LTP] false success for exp test Subrata Modak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=73cd086a0909290032o7f60b80buf41f1426bf5b3013@mail.gmail.com \
    --to=vksavl@gmail.com \
    --cc=ltp-list@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox