1 #include <ccan/rbuf/rbuf.h>
2 /* Include the C files directly. */
3 #include <ccan/rbuf/rbuf.c>
4 #include <ccan/tap/tap.h>
14 /* This is how many tests you plan to run */
17 ok1(!rbuf_open(&in, "nonexistent-file", NULL, 0));
19 ok1(rbuf_open(&in, "test/run-open.c", NULL, 0));
20 ok1(close(in.fd) == 0);
21 /* If this fails to stat, it should fall back */
22 ok1(rbuf_good_size(in.fd) == 4096);