aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/tstdiomisc.c
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2013-04-05 15:58:27 +0200
committerThomas Schwinge <thomas@codesourcery.com>2013-04-05 22:39:26 +0200
commita8b792d6bb54fda2ff66f8b0c725397d402f367e (patch)
treeba1b193d79b34b06f805565a78d09e2a30cfa96e /stdio-common/tstdiomisc.c
parenta1cbf437a53b24f2ff1f6af42028b607f6aa279d (diff)
downloadglibc-a8b792d6bb54fda2ff66f8b0c725397d402f367e.zip
glibc-a8b792d6bb54fda2ff66f8b0c725397d402f367e.tar.gz
glibc-a8b792d6bb54fda2ff66f8b0c725397d402f367e.tar.bz2
Properly collect individual tests' results.
Fixup for commit 003c9895a89e71767ad64bafac1ca99622be2eb7.
Diffstat (limited to 'stdio-common/tstdiomisc.c')
-rw-r--r--stdio-common/tstdiomisc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdio-common/tstdiomisc.c b/stdio-common/tstdiomisc.c
index d24c55f..fa07aa5 100644
--- a/stdio-common/tstdiomisc.c
+++ b/stdio-common/tstdiomisc.c
@@ -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);