1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00
* libio/tst_swprintf.c (main): Add test for string argument with
	zero precision.
This commit is contained in:
Ulrich Drepper
2001-12-14 07:26:22 +00:00
parent 30bce7b63f
commit 2e22fed281
3 changed files with 26 additions and 4 deletions

View File

@ -68,8 +68,24 @@ main (int argc, char *argv[])
result = 1;
}
else
printf ("swprintf (buf, %Zu, L\"%%s\", \"%s\") OK\n",
tests[n].n, tests[n].str);
printf ("swprintf (buf, %Zu, L\"%%s\", \"%s\") OK\n",
tests[n].n, tests[n].str);
}
if (swprintf (buf, nbuf, L"%.0s", "foo") != 0
|| wcslen (buf) != 0)
{
printf ("swprintf (buf, %Zu, L\"%%.0s\", \"foo\") create some output\n",
nbuf);
result = 1;
}
if (swprintf (buf, nbuf, L"%.0ls", L"foo") != 0
|| wcslen (buf) != 0)
{
printf ("swprintf (buf, %Zu, L\"%%.0ls\", L\"foo\") create some output\n",
nbuf);
result = 1;
}
return result;