X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Frbuf%2Ftest%2Frun-open.c;fp=ccan%2Frbuf%2Ftest%2Frun-open.c;h=4e8277f224c5195af494d13e729b2b28726c8d17;hb=d8a270fdfc57ffe7603028ecda99eeab3889ca70;hp=5678e42e9bf7191920d5ed306006359c7af5dfca;hpb=86d30436820cacfc872de2ba518dd0b54b544647;p=ccan diff --git a/ccan/rbuf/test/run-open.c b/ccan/rbuf/test/run-open.c index 5678e42e..4e8277f2 100644 --- a/ccan/rbuf/test/run-open.c +++ b/ccan/rbuf/test/run-open.c @@ -14,9 +14,9 @@ int main(void) /* This is how many tests you plan to run */ plan_tests(5); - ok1(!rbuf_open(&in, "nonexistent-file", NULL, 0)); + ok1(!rbuf_open(&in, "nonexistent-file", NULL, 0, NULL)); ok1(errno == ENOENT); - ok1(rbuf_open(&in, "test/run-open.c", NULL, 0)); + ok1(rbuf_open(&in, "test/run-open.c", NULL, 0, NULL)); ok1(close(in.fd) == 0); /* If this fails to stat, it should fall back */ ok1(rbuf_good_size(in.fd) == 4096);