X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb%2Ftest%2Frun-open-during-transaction.c;h=27356e785f6b00c59539887b5e82ae1a641c77a6;hp=5119004b97fb6d2af561f83ced86fc9c4afa3af8;hb=b86f8688feef575cb0c69b964a47fa1167cde528;hpb=39323f37b0209c24f5be4b4c7f119d6019912541 diff --git a/ccan/tdb/test/run-open-during-transaction.c b/ccan/tdb/test/run-open-during-transaction.c index 5119004b..27356e78 100644 --- a/ccan/tdb/test/run-open-during-transaction.c +++ b/ccan/tdb/test/run-open-during-transaction.c @@ -19,6 +19,7 @@ static int ftruncate_check(int fd, off_t length); #include #include #include +#include #include #include #include @@ -80,7 +81,7 @@ static void check_for_agent(int fd, bool block) if (!external_agent_operation_check(agent, block, &res)) return; - if (res != 0) + if (res != 1) err(1, "Agent failed open"); agent_pending = false;