mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
Properly collect individual tests' results.
Fixup for commit 003c9895a8
.
This commit is contained in:
parent
a1cbf437a5
commit
a8b792d6bb
@ -1,5 +1,8 @@
|
||||
2013-04-05 Thomas Schwinge <thomas@codesourcery.com>
|
||||
|
||||
* stdio-common/tstdiomisc.c (F): Properly collect individual
|
||||
tests' results.
|
||||
|
||||
[BZ #14686, #15336]
|
||||
* sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
|
||||
* sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
|
||||
|
@ -57,20 +57,20 @@ F (void)
|
||||
{
|
||||
char buf[80];
|
||||
wchar_t wbuf[40];
|
||||
int result;
|
||||
int result = 0;
|
||||
|
||||
qnanval = NAN;
|
||||
|
||||
snprintf (buf, sizeof buf, "%a %A %e %E %f %F %g %G",
|
||||
qnanval, qnanval, qnanval, qnanval,
|
||||
qnanval, qnanval, qnanval, qnanval);
|
||||
result = strcmp (buf, "nan NAN nan NAN nan NAN nan NAN") != 0;
|
||||
result |= strcmp (buf, "nan NAN nan NAN nan NAN nan NAN") != 0;
|
||||
printf ("expected \"nan NAN nan NAN nan NAN nan NAN\", got \"%s\"\n", buf);
|
||||
|
||||
snprintf (buf, sizeof buf, "%a %A %e %E %f %F %g %G",
|
||||
-qnanval, -qnanval, -qnanval, -qnanval,
|
||||
-qnanval, -qnanval, -qnanval, -qnanval);
|
||||
result = strcmp (buf, "-nan -NAN -nan -NAN -nan -NAN -nan -NAN") != 0;
|
||||
result |= strcmp (buf, "-nan -NAN -nan -NAN -nan -NAN -nan -NAN") != 0;
|
||||
printf ("expected \"-nan -NAN -nan -NAN -nan -NAN -nan -NAN\", got \"%s\"\n",
|
||||
buf);
|
||||
|
||||
@ -118,13 +118,13 @@ F (void)
|
||||
snprintf (buf, sizeof buf, "%La %LA %Le %LE %Lf %LF %Lg %LG",
|
||||
lqnanval, lqnanval, lqnanval, lqnanval,
|
||||
lqnanval, lqnanval, lqnanval, lqnanval);
|
||||
result = strcmp (buf, "nan NAN nan NAN nan NAN nan NAN") != 0;
|
||||
result |= strcmp (buf, "nan NAN nan NAN nan NAN nan NAN") != 0;
|
||||
printf ("expected \"nan NAN nan NAN nan NAN nan NAN\", got \"%s\"\n", buf);
|
||||
|
||||
snprintf (buf, sizeof buf, "%La %LA %Le %LE %Lf %LF %Lg %LG",
|
||||
-lqnanval, -lqnanval, -lqnanval, -lqnanval,
|
||||
-lqnanval, -lqnanval, -lqnanval, -lqnanval);
|
||||
result = strcmp (buf, "-nan -NAN -nan -NAN -nan -NAN -nan -NAN") != 0;
|
||||
result |= strcmp (buf, "-nan -NAN -nan -NAN -nan -NAN -nan -NAN") != 0;
|
||||
printf ("expected \"-nan -NAN -nan -NAN -nan -NAN -nan -NAN\", got \"%s\"\n",
|
||||
buf);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user