2000-07-07  Ulrich Drepper  <drepper@redhat.com>

	* stdio-common/Makefile (tests): Remove tst-printf here...
	(tests-srcs): ...and add it here.
	(distribute): Add tst-unbputc.sh and tst-printf.sh.
	Add rules to run tst-printf.sh.
	* stdio-common/tst-printf.c: Move code around so that there is really
	no further output where it's stated.
	* stdio-common/tst-printf.sh: New file.
This commit is contained in:
Ulrich Drepper 2000-07-07 21:06:48 +00:00
parent 95b04192ab
commit 0755050e6d
3 changed files with 156 additions and 6 deletions

View file

@ -1,3 +1,13 @@
2000-07-07 Ulrich Drepper <drepper@redhat.com>
* stdio-common/Makefile (tests): Remove tst-printf here...
(tests-srcs): ...and add it here.
(distribute): Add tst-unbputc.sh and tst-printf.sh.
Add rules to run tst-printf.sh.
* stdio-common/tst-printf.c: Move code around so that there is really
no further output where it's stated.
* stdio-common/tst-printf.sh: New file.
2000-07-07 Mark Kettenis <kettenis@gnu.org>
* hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.

View file

@ -1,4 +1,4 @@
/* Copyright (C) 1991,92,93,95,96,97,98,99 Free Software Foundation, Inc.
/* Copyright (C) 1991,92,93,95,96,97,98,99, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -237,10 +237,6 @@ I am ready for my first lesson today.";
printf("%.17f\n",(1.0/x/10.0+1.0)*x-x);
}
puts ("--- Should be no further output. ---");
rfg1 ();
rfg2 ();
{
char buf[200];
@ -256,7 +252,7 @@ I am ready for my first lesson today.";
char buf[200];
sprintf (buf, "%07Lo", 040000000000ll);
printf ("sprintf (buf, \"%%07Lo\", 040000000000ll) = %s\n", buf);
printf ("sprintf (buf, \"%%07Lo\", 040000000000ll) = %s", buf);
if (strcmp (buf, "40000000000") != 0)
{
@ -266,6 +262,10 @@ I am ready for my first lesson today.";
puts ("");
}
puts ("--- Should be no further output. ---");
rfg1 ();
rfg2 ();
return result != 0;
}

140
stdio-common/tst-printf.sh Normal file

File diff suppressed because one or more lines are too long