Further testsuite patch
Andreas Jaeger
aj@suse.de
Wed Jun 25 12:20:00 GMT 2003
This patch removes three further problems. I've committed it.
Andreas
2003-06-25 Andreas Jaeger <aj@suse.de>
* posix/tst-nanosleep.c: Include <time.h> for nanosleep
declaration.
* stdio-common/tst-fphex.c: Fix format string.
============================================================
Index: posix/tst-nanosleep.c
--- posix/tst-nanosleep.c 17 May 2003 05:03:45 -0000 1.1
+++ posix/tst-nanosleep.c 25 Jun 2003 11:11:16 -0000
@@ -20,6 +20,7 @@
#include <stdio.h>
#include <unistd.h>
#include <sys/time.h>
+#include <time.h>
/* Test that nanosleep() does sleep. */
============================================================
Index: stdio-common/tst-fphex.c
--- stdio-common/tst-fphex.c 24 Oct 2002 01:15:31 -0000 1.1
+++ stdio-common/tst-fphex.c 25 Jun 2003 11:11:18 -0000
@@ -39,7 +39,7 @@ do_test (int argc, char **argv)
int n = snprintf (buf, sizeof buf, t->fmt, t->value);
if (n != strlen (t->expect) || strcmp (buf, t->expect) != 0)
{
- printf ("%s\tExpected \"%s\" (%u)\n\tGot \"%s\" (%d, %u)\n",
+ printf ("%s\tExpected \"%s\" (%Zu)\n\tGot \"%s\" (%d, %Zu)\n",
t->fmt, t->expect, strlen (t->expect), buf, n, strlen (buf));
result = 1;
}
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-hacker/attachments/20030625/96fbc866/attachment.sig>
More information about the Libc-hacker
mailing list