[PATCH v2 2/3] Add test for warn, warnx, vwarn, and vwarnx with floating-point parameters

Florian Weimer fweimer@redhat.com
Thu Aug 16 09:26:00 GMT 2018


On 08/15/2018 10:16 PM, Gabriel F. T. Gomes wrote:

> +  /* Prepare in-memory buffer to hold the output.  */
> +  char *buffer = NULL;
> +  size_t length = 0;
> +  FILE *fp = open_memstream (&buffer, &length);
> +  TEST_VERIFY_EXIT (fp != NULL);

You could use <support/xmemstream.h> here.  (My other test couldn't use 
this because it needed wide-oriented streams.)

Thanks,
Florian



More information about the Libc-alpha mailing list