mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 02:03:35 +08:00
Fix error messages in test.
This commit is contained in:
parent
fcabc0f8b1
commit
20030ae6d7
@ -1,5 +1,7 @@
|
||||
2011-05-13 Ulrich Drepper <drepper@gmail.com>
|
||||
|
||||
* libio/tst_putwc.c: Fix error messages.
|
||||
|
||||
[BZ #12724]
|
||||
* libio/fileops.c (_IO_new_file_close_it): Always flush when
|
||||
currently writing and seek to current position when not.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Simple test of putwc in the C locale.
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000, 2011 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 2000.
|
||||
|
||||
@ -74,13 +74,16 @@ do_test (void)
|
||||
/* Now close the file, open it again, and read again. */
|
||||
if (fclose (fp) != 0)
|
||||
{
|
||||
printf ("failure during fclose(): %m");
|
||||
printf ("failure during fclose: %m\n");
|
||||
res = 1;
|
||||
}
|
||||
|
||||
fp = fopen (outname, "r");
|
||||
if (fp == NULL)
|
||||
error (EXIT_FAILURE, errno, "cannot reopen file");
|
||||
{
|
||||
printf ("cannot reopen file: %m\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* We can remove the file now. */
|
||||
remove (outname);
|
||||
@ -104,7 +107,7 @@ do_test (void)
|
||||
|
||||
if (fclose (fp) != 0)
|
||||
{
|
||||
puts ("failure during fclose()");
|
||||
printf ("failure during fclose: %m\n");
|
||||
res = 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user