glibc/tests/Regression/setvbuf-to-full-not-working/testcase.c

17 lines
237 B
C
Raw Normal View History

#include <stdio.h>
#include <unistd.h>
int main(void)
{
setvbuf(stderr, NULL, _IOFBF, BUFSIZ);
setvbuf(stdout, NULL, _IONBF, 0);
fprintf(stderr, "stderr");
fprintf(stdout, "stdout");
sleep(1);
printf("\n");
return 0;
}