From: Rusty Russell Date: Tue, 29 Nov 2011 22:47:11 +0000 (+1030) Subject: failtest: fix open in tests. X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=36d54ff66bdfdc316f666a98c69d2a27e2975fa2;hp=eaff14657e211975f22d86210b98524401bcd45b failtest: fix open in tests. The argument is wrong, so the return was -1. That currently works, but it will beak with the next patch. Fix the typo. --- diff --git a/ccan/failtest/test/run-history.c b/ccan/failtest/test/run-history.c index 24dc1169..88068b55 100644 --- a/ccan/failtest/test/run-history.c +++ b/ccan/failtest/test/run-history.c @@ -54,8 +54,8 @@ int main(void) ok1(call->u.realloc.ptr == realloc_call.ptr); ok1(call->u.realloc.size == realloc_call.size); - open_call.ret = open("test/run_history.c", O_RDONLY); - open_call.pathname = "test/run_history.c"; + open_call.ret = open("test/run-history.c", O_RDONLY); + open_call.pathname = "test/run-history.c"; open_call.flags = O_RDONLY; open_call.mode = 0; call = add_history(FAILTEST_OPEN, "run-history.c", 4, &open_call);