public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] libio/bug-wsetpos: Make the error message match the causing function
@ 2024-05-13 11:55 Maciej W. Rozycki
  0 siblings, 0 replies; only message in thread
From: Maciej W. Rozycki @ 2024-05-13 11:55 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e3c375eb4f33e265b0cb186435c0b540ed27d2da

commit e3c375eb4f33e265b0cb186435c0b540ed27d2da
Author: Maciej W. Rozycki <macro@redhat.com>
Date:   Mon May 13 12:50:48 2024 +0100

    libio/bug-wsetpos: Make the error message match the causing function
    
    This test case calls `fopen':
    
      FILE *fp = fopen (temp_file, "r");
    
    however if that fails it reports `fdopen' being the origin of the error.
    Adjust the message to say `fopen' then.

Diff:
---
 libio/bug-wsetpos.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libio/bug-wsetpos.c b/libio/bug-wsetpos.c
index 0fc373ba49..8d47e9266f 100644
--- a/libio/bug-wsetpos.c
+++ b/libio/bug-wsetpos.c
@@ -37,7 +37,7 @@ do_test (void)
 
   if (fp == NULL)
     {
-      printf ("fdopen: %m\n");
+      printf ("fopen: %m\n");
       return 1;
     }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-13 11:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-13 11:55 [glibc] libio/bug-wsetpos: Make the error message match the causing function Maciej W. Rozycki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).