X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb%2Ftest%2Frun-open-during-transaction.c;h=27356e785f6b00c59539887b5e82ae1a641c77a6;hb=1d03cc6df3b4f5c8174096ae3411527f266f9a97;hp=5119004b97fb6d2af561f83ced86fc9c4afa3af8;hpb=9d045ca09a0b052d968e11d98540f63a8a0aa412;p=ccan 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;