This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] libio: Fix fmemopen 'w' mode with provided buffer


On 07/16/2015 09:03 AM, Adhemerval Zanella wrote:
> 
> 
> On 16-07-2015 08:58, Stefan Liebler wrote:
>> As already mentioned in https://www.sourceware.org/ml/libc-alpha/2015-07/msg00455.html, the testcase is now passing on s390-32.
>>
>> Can you change this printf in case of a failure, too:
> 
> Ok, change below:
> 
> 	* libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
> 	buffer.
> 	* stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
> 	fail output information.

> @@ -69,7 +69,7 @@ do_test_with_buffer (void)
>    if (o != nstr)
>      {
>        printf ("FAIL: third ftello returned %jd, expected %zu\n",
> -	      (intmax_t)o, nbuf);
> +	      (intmax_t)o, nstr);
>        result = 1;
>      }

OK for 2.22.

c.
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]