Patching Dec 9, 2021 6-7a CST- All GitLab services may be unavailable for 5-10 minutes

Commit a8f0a5ce authored by Roland Haas's avatar Roland Haas
Browse files

async_writer: expand test to test finalize() and select() calls

parent 2630250c
......@@ -3,15 +3,21 @@
#include <cstdio>
#include <cstring>
#include <unistd.h>
int main(void)
async_writer writer(stdout);
writer.write(strdup("foo\n"), 4);
fprintf(stderr, "available: %zu\n",;
fprintf(stderr, "available: %zu\n",;;
writer.write(strdup("aa"), 2);
fprintf(stderr, "available: %zu\n",;
fprintf(stderr, "available: %zu\n",;
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment