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 v2 2/3] Add test for warn, warnx, vwarn, and vwarnx with floating-point parameters


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


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