From: Tommy Nordgren <tommy.nordgren@comhem.se>
To: Tommy Nordgren <tommy.nordgren@comhem.se>
Cc: Aleksej Saushev <asau@hotbox.ru>,
Brian Gough <bjg@network-theory.co.uk>,
gsl-discuss@sourceware.org
Subject: Re: test release gsl-1.9.90.tar.gz
Date: Wed, 12 Sep 2007 21:03:00 -0000 [thread overview]
Message-ID: <FDA662E2-352A-4A08-BEC9-D909BFF50F2F@comhem.se> (raw)
In-Reply-To: <682A4679-3C95-4DE0-AC92-BF1B57A241B2@comhem.se>
On 12 sep 2007, at 23.01, Tommy Nordgren wrote:
>
> On 11 sep 2007, at 22.00, Aleksej Saushev wrote:
>
>> Brian Gough <bjg@network-theory.co.uk> writes:
>>
>>> I have made a test release for gsl-1.10.
>>
>> gcc -DHAVE_CONFIG_H -I. -I.. -I.. -g -O2 -c test.c
>> /bin/ksh ../libtool --tag=CC --mode=link gcc -g -O2 -o test
>> test.o libgslsys.la ../ieee-utils/libgslieeeutils.la ../err/
>> libgslerr.la ../test/libgsltest.la libgslsys.la ../utils/
>> libutils.la -lm
>> gcc -g -O2 -o test test.o ../ieee-utils/.libs/
>> libgslieeeutils.a ../err/.libs/libgslerr.a ../test/.libs/
>> libgsltest.a ./.libs/libgslsys.a ../utils/.libs/libutils.a -lm
>> make check-TESTS
>> FAIL: gsl_isinf(-inf) (1 observed vs -1 expected) [112]
>> FAIL: test
>> ===================
>> 1 of 1 tests failed
>> ===================
>>
>> Fix attached.
>>
>> NetBSD 4.99.31 i386
>> cc (GCC) 4.1.3 20070620 prerelease (NetBSD nb1 20070620)
>>
>> With fix all tests pass.
>>
>> --- sys/test.c.orig 2007-06-11 12:57:34.000000000 +0400
>> +++ sys/test.c 2007-06-11 12:57:52.000000000 +0400
>> @@ -383,7 +383,7 @@
>> negative). (This is all that C99 requires.) */
>>
>> s = gsl_isinf (-inf);
>> - gsl_test_int (s, -1, "gsl_isinf(-inf)");
>> + gsl_test_int (s, 1, "gsl_isinf(-inf)");
>>
>> s = gsl_isinf (nan);
>> gsl_test_int (s, 0, "gsl_isinf(nan)");
>
> The following alternate patch will fix the test failure, without
> modifying the test cases.
> --- /Users/emac/Desktop/infnan.c 2007-09-12
> 22:37:19.000000000 +0200
> +++ /Softsys/gsl-1.9.90/sys/infnan.c 2007-09-12
> 22:44:30.000000000 +0200
> @@ -118,7 +118,11 @@
> int
> gsl_isinf (const double x)
> {
> - return isinf(x);
> + int result = isinf(x);
> + if (result > 0 && x < 0) {
> + result = - result;
> + }
> + return result;
> }
> # else
> Note: the one on the desktop is the unmodified file.
> Also, with make -k check all other test cases pass.
>
OOPS forgot specifying My OS: Mac OS X 10.4.10 (darwin) G4 PowerPC
(emac)
-------------------------------------
This sig is dedicated to the advancement of Nuclear Power
Tommy Nordgren
tommy.nordgren@comhem.se
next prev parent reply other threads:[~2007-09-12 21:03 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-11 9:19 Brian Gough
2007-09-11 18:39 ` Patrick Alken
2007-09-12 17:04 ` Brian Gough
2007-09-13 13:45 ` Brian Gough
2007-09-13 16:30 ` Patrick Alken
2007-09-13 19:34 ` Brian Gough
2007-09-12 8:21 ` Aleksej Saushev
2007-09-12 8:48 ` Brian Gough
2007-09-12 20:12 ` Jari Häkkinen
2007-09-12 21:02 ` Tommy Nordgren
2007-09-12 21:03 ` Tommy Nordgren [this message]
2007-09-13 8:12 ` Aleksej Saushev
2007-09-13 9:42 ` Tommy Nordgren
2007-09-12 21:16 ` Oliver Jennrich
2007-09-13 12:42 ` Brian Gough
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=FDA662E2-352A-4A08-BEC9-D909BFF50F2F@comhem.se \
--to=tommy.nordgren@comhem.se \
--cc=asau@hotbox.ru \
--cc=bjg@network-theory.co.uk \
--cc=gsl-discuss@sourceware.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).